1
0
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:
Ross Wilson 2015-10-30 21:19:39 +07:00
parent c52a5cc3c6
commit 9616e39fa7

19
pymlac/make_ptr.c Normal file
View 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;
}