Practice ยท 3 of 3
Append Log
Implement int append_line(const char *path, const char *line): append line + '\n' to path (mode "a", creating it if needed) and return 0; return -1 on open failure. Two consecutive appends must BOTH survive.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: File Workbench