mirror of
https://github.com/rzzzwilson/pymlac.git
synced 2025-06-10 09:32:41 +00:00
20 lines
239 B
C
20 lines
239 B
C
/*
|
|
* 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;
|
|
}
|