mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
extending example by writing something in /tmp/test.txt
This commit is contained in:
parent
79e71200b5
commit
e221677fe1
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ int main(int argc, char** argv)
|
|||
file = fopen("/tmp/test.txt", "w");
|
||||
if (file)
|
||||
{
|
||||
fprintf(file, "Hello World!!!\n");
|
||||
fclose(file);
|
||||
} else fprintf(stderr, "Unable to open file /tmp/test.txt\n");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue