mirror of
https://github.com/rzzzwilson/pymlac.git
synced 2025-06-10 09:32:41 +00:00
Program to make test PTR file
This commit is contained in:
parent
c52a5cc3c6
commit
9616e39fa7
19
pymlac/make_ptr.c
Normal file
19
pymlac/make_ptr.c
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Simple program to write a test PTR file.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
int fd = open("test.ptr", O_WRONLY|O_CREAT);
|
||||
|
||||
write(fd, "\0\1\2", 3);
|
||||
|
||||
close(fd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user