From 38d20a2c71be986fb1551d8f3e650f21d6deafff Mon Sep 17 00:00:00 2001 From: Ross Wilson Date: Fri, 30 Oct 2015 21:27:42 +0700 Subject: [PATCH] Changed file creator to bash --- pymlac/make_ptr | 6 ++++++ pymlac/make_ptr.c | 19 ------------------- 2 files changed, 6 insertions(+), 19 deletions(-) create mode 100644 pymlac/make_ptr delete mode 100644 pymlac/make_ptr.c diff --git a/pymlac/make_ptr b/pymlac/make_ptr new file mode 100644 index 0000000..10f9b5f --- /dev/null +++ b/pymlac/make_ptr @@ -0,0 +1,6 @@ +#!/bin/bash +# +# Make a PTR test file +# 3 bytes: 0 1 2 + +echo -n -e "\00\01\02" diff --git a/pymlac/make_ptr.c b/pymlac/make_ptr.c deleted file mode 100644 index 1b24215..0000000 --- a/pymlac/make_ptr.c +++ /dev/null @@ -1,19 +0,0 @@ -/* - * 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; -}