Miscellany
public text v1 · immutable#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
int main()
{
char *p = "foo";
char buf[] = "bar";
int desc;
desc = open(p, O_RDWR);
write(desc, buf, 4096);
close(desc);
exit(0);
}