Files

26 lines
427 B
C

#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <ctype.h>
#include <stdlib.h>
int main (int index, char** in_data){
int fd;
int data;
void * buf;
buf = malloc (100);
fd = open ("gino",O_WRONLY | O_APPEND,00700);
lseek (fd,2,SEEK_SET);
write (fd,(void *)"ehi",3);
close(fd);
return 0;
}