Rev 1485 | Rev 1538 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1485 | Rev 1530 | ||
|---|---|---|---|
| Line 274... | Line 274... | ||
| 274 | ; |
274 | ; |
| 275 | } |
275 | } |
| 276 | 276 | ||
| 277 | char *strncpy(char *dest, const char *src, size_t n) |
277 | char *strncpy(char *dest, const char *src, size_t n) |
| 278 | { |
278 | { |
| 279 | while (*(dest++) = *(src++) && --n) |
279 | while ((*(dest++) = *(src++)) && --n) |
| 280 | ; |
280 | ; |
| 281 | } |
281 | } |