Changeset 3207
- Timestamp:
- Feb 13, 2005, 9:55:53 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/psdb/psDB.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/psdb/psDB.c
r3205 r3207 8 8 * @author Joshua Hoblitt 9 9 * 10 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-02-13 1 1:21:18$10 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-02-13 19:55:53 $ 12 12 * 13 13 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 1245 1245 ssize_t tailLength; // length of string to append 1246 1246 1247 // size of existing string 1248 oldLength = strlen(*dest); 1247 if (!*dest) { 1248 *dest = psStringCopy(""); 1249 oldLength = 0; 1250 } else { 1251 // size of existing string 1252 oldLength = strlen(*dest); 1253 } 1249 1254 1250 1255 // find the size of the string to append … … 1281 1286 char *oldDest; // copy of original string 1282 1287 1283 // size of existing string 1284 length = strlen(*dest); 1288 if (!*dest) { 1289 // makes the string backup and concatination pointless 1290 *dest = psStringCopy(""); 1291 length = 0; 1292 } else { 1293 // size of existing string 1294 length = strlen(*dest); 1295 } 1285 1296 1286 1297 // find the size of the string to prepend
Note:
See TracChangeset
for help on using the changeset viewer.
