2 * strio.c: string/file manipulation functions by Victor Rachels
14 //added on 9/16/98 by adb to add memory tracking for this module
18 char *fgets_unlimited(PHYSFS_file *f)
23 MALLOC(word, char, mem);
26 while (word && cfgets(p, mem, f) == word + mem) {
29 // Make a bigger buffer, because it read to the end of the buffer.
32 MALLOC(word, char, mem);
33 for (i = 0; i < mem/2; i++)
41 char* splitword(char *s, char splitchar)
47 for(x=0;s[x]!=splitchar&&x<l;x++);
50 word = (char *) d_malloc(sizeof(char) * (l2+1));