Rev 1319 | Rev 1485 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1319 | Rev 1472 | ||
---|---|---|---|
Line 244... | Line 244... | ||
244 | 244 | ||
245 | number = _strtoul(nptr, endptr, base, &sgn); |
245 | number = _strtoul(nptr, endptr, base, &sgn); |
246 | 246 | ||
247 | return (sgn?-number:number); |
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 | } |