Changeset c594489 in mainline for libc/generic/string.c


Ignore:
Timestamp:
2006-05-31T18:54:25Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad123964
Parents:
1c20e22
Message:

More things to make tetris helenos compatibile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/string.c

    r1c20e22 rc594489  
    247247        return (sgn?-number:number);
    248248}
     249
     250char *strcpy(char *dest, const char *src)
     251{
     252        while (*(dest++) = *(src++))
     253                ;
     254}
     255
     256char *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.