mirror of
https://github.com/drasko/codezero.git
synced 2026-01-19 14:23:15 +01:00
A file can be created.
Now up to sys_write() in pager, which needs to be filled in.
This commit is contained in:
@@ -21,6 +21,7 @@ int fileio(void)
|
||||
perror("OPEN");
|
||||
return -1;
|
||||
}
|
||||
printf("Created newfile.txt\n");
|
||||
|
||||
if ((int)(cnt = write(fd, str, strlen(str))) < 0) {
|
||||
perror("WRITE");
|
||||
|
||||
Reference in New Issue
Block a user