From 9616e39fa7debf91b0fa7f60723321d7e30e4730 Mon Sep 17 00:00:00 2001 From: Ross Wilson Date: Fri, 30 Oct 2015 21:19:39 +0700 Subject: [PATCH] Program to make test PTR file --- pymlac/make_ptr.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pymlac/make_ptr.c diff --git a/pymlac/make_ptr.c b/pymlac/make_ptr.c new file mode 100644 index 0000000..1b24215 --- /dev/null +++ b/pymlac/make_ptr.c @@ -0,0 +1,19 @@ +/* + * Simple program to write a test PTR file. + */ + +#include +#include +#include + +int +main(void) +{ + int fd = open("test.ptr", O_WRONLY|O_CREAT); + + write(fd, "\0\1\2", 3); + + close(fd); + + return 0; +}