I am using fscanf to read in the date and then fgets to read the note. However after the first iteration, fscanf returns a value of -1.
I used GDB to debug the progr
The string you see when running GDB really ends at the first null character:
"\rtest\r18/04/2010\rtest2\r03/05/2010\rtest3\r05/08/2009\rtest4\r\n\000"
The other data after is ignored (when using ordinary str-functions);