- change in hello to show all 34 chars (instead of 30)

This commit is contained in:
Marian Ohligs 2011-09-15 23:37:38 +02:00
parent fc1c65a919
commit ae0042289e

View file

@ -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);