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:
6
pymlac/make_ptr
Normal file
6
pymlac/make_ptr
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Make a PTR test file
|
||||
# 3 bytes: 0 1 2
|
||||
|
||||
echo -n -e "\00\01\02"
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user