No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, I'm checkng whether a file has been modified or not in order to refresh the content... However, i need a couple improvements : - How do I test the return value of stat to tell if it failed ? - The returned errno numbers may change between glibc versions, … | |
Hello, I'm quite new to C programming, the code below tries to print the last 10 lines of a file, My problem is in the last part of the function tail_file() : strcat(tail, character); i'm reading the file character by character, but i want to return a string containing all … |