Subversion Repositories HelenOS-historic

Rev

Rev 985 | Rev 1301 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 985 Rev 999
Line 28... Line 28...
28
 
28
 
29
 
29
 
30
#ifndef __LIBC__STRING_H__
30
#ifndef __LIBC__STRING_H__
31
#define __LIBC__STRING_H__
31
#define __LIBC__STRING_H__
32
 
32
 
33
static inline void * memset(void *s, int c, size_t n)
33
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)
34
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
}
-
 
49
 
35
 
50
#endif
36
#endif