Changeset 4309 for trunk/archive/scripts/src/papStuff.c
- Timestamp:
- Jun 17, 2005, 2:48:18 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/scripts/src/papStuff.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/papStuff.c
r4092 r4309 2 2 #include <string.h> 3 3 #include "pslib.h" 4 #include "papStuff.h" 4 5 5 6 // Split string on given characters … … 23 24 } else { 24 25 // We're at the end of the word 25 char *word = psStringNCopy(&string[start], i - start);26 psString word = psStringNCopy(&string[start], i - start); 26 27 (void)psListAdd(values, PS_LIST_TAIL, word); 27 28 start = i + 1; … … 31 32 if (start < length) { 32 33 // Copy the last word 33 char *word = psStringNCopy(&string[start], length - start);34 psString word = psStringNCopy(&string[start], length - start); 34 35 (void)psListAdd(values, PS_LIST_TAIL, word); 35 36 }
Note:
See TracChangeset
for help on using the changeset viewer.
