- change in hello to show all 34 chars (instead of 30)
This commit is contained in:
parent
fc1c65a919
commit
ae0042289e
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
char* teststr = malloc(sizeof(char)*100);
|
||||
int testfile = open("/bin/test.txt", O_CREAT | O_EXCL, "wr");
|
||||
write(testfile, "hello in new file '/bin/test.txt'", 30);
|
||||
write(testfile, "hello in new file '/bin/test.txt'", 34);
|
||||
lseek(testfile, 0, SEEK_SET);
|
||||
read(testfile, teststr, 100);
|
||||
close(testfile);
|
||||
|
|
Loading…
Add table
Reference in a new issue