I used this:
and only on the second line does it report an error, what sort of situations could cause this that you know of?Code:fprintf(stderr,"%s\n",path); fprintf(stdout,"%s\n",path);
Edit: Never mind, finally managed to dig out a related thread that was solved by adding more memory, tried looking around and realised the problem lay where I set the initial value for the number of characters to allocate