1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

Changed file creator to bash

This commit is contained in:
Ross Wilson
2015-10-30 21:27:42 +07:00
parent 264a23a9cb
commit 38d20a2c71
2 changed files with 6 additions and 19 deletions

6
pymlac/make_ptr Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
#
# Make a PTR test file
# 3 bytes: 0 1 2
echo -n -e "\00\01\02"

View File

@@ -1,19 +0,0 @@
/*
* 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;
}