Changeset c594489 in mainline for libc/generic/string.c
- Timestamp:
- 2006-05-31T18:54:25Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ad123964
- Parents:
- 1c20e22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/string.c
r1c20e22 rc594489 247 247 return (sgn?-number:number); 248 248 } 249 250 char *strcpy(char *dest, const char *src) 251 { 252 while (*(dest++) = *(src++)) 253 ; 254 } 255 256 char *strncpy(char *dest, const char *src, size_t n) 257 { 258 while (*(dest++) = *(src++) && --n) 259 ; 260 }
Note:
See TracChangeset
for help on using the changeset viewer.