Changeset 936351c1 in mainline for libc/include/string.h


Ignore:
Timestamp:
2006-03-14T23:48:33Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d73942c
Parents:
4f34b6a
Message:

Completed asynchronous IPC.
Fixed sbrk.
Cleared some unnecessary defines in malloc.
Changed u8 * to char * in list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/include/string.h

    r4f34b6a r936351c1  
    3131#define __LIBC__STRING_H__
    3232
    33 static inline void * memset(void *s, int c, size_t n)
    34 {
    35         char *os = s;
    36         while (n--)
    37                 *(os++) = c;
    38         return s;
    39 }
    40 
    41 static inline void * memcpy(void *dest, void *src, size_t n)
    42 {
    43         char *os = src;
    44         char *odst = dest;
    45         while (n--)
    46                 *(odst++) = *(os++);
    47         return dest;
    48 }
     33void * memset(void *s, int c, size_t n);
     34void * memcpy(void *dest, void *src, size_t n);
    4935
    5036#endif
Note: See TracChangeset for help on using the changeset viewer.