Changeset 1526594c in mainline for uspace/lib/libc/generic/string.c
- Timestamp:
- 2008-03-03T00:34:01Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5fec355
- Parents:
- dadcec1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/string.c
rdadcec1 r1526594c 329 329 char *orig = dest; 330 330 331 while ((*(dest++) = *(src++))); 331 while ((*(dest++) = *(src++))) 332 ; 332 333 return orig; 333 334 } … … 337 338 char *orig = dest; 338 339 339 while ((*(dest++) = *(src++)) && --n); 340 while ((*(dest++) = *(src++)) && --n) 341 ; 340 342 return orig; 341 343 } 342 344 345 char *strcat(char *dest, const char *src) 346 { 347 char *orig = dest; 348 while (*dest++) 349 ; 350 --dest; 351 while ((*dest++ = *src++)) 352 ; 353 return orig; 354 } 355 343 356 /** @} 344 357 */
Note:
See TracChangeset
for help on using the changeset viewer.