3 * Copyright (C) 2007 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
4 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * Copyright (C) 2009 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
6 * Copyright (C) 2010 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #include <sys/types.h>
29 extern int memcmp (const void *cs
, const void *ct
, size_t count
);
30 extern void *memcpy (void *dst_ptr
, const void *src_ptr
, size_t count
);
31 extern void *memchr (void const *buf
, int c
, size_t len
);
32 extern void *memsetw (void *dst
, int val
, size_t count
);
33 extern void *memset (void *dst
, int val
, size_t count
);
34 extern size_t strlen (const char *str
);
35 extern char *strchr (const char *s
, int c
);
36 extern char *strcpy (char *to
, const char *from
);
37 extern char *strncpy (char *s1
, const char *s2
, size_t n
);
38 extern char *strcat (char *s
, const char *add
);
39 extern char *strncat (char *dest
, char const *src
, size_t count
);
40 extern int strcmp (const char *cs
, const char *ct
);
41 extern int strncmp (const char *cs
, const char *ct
, size_t count
);
42 extern char *strstr (char const *s1
, char const *s2
);
43 extern size_t strspn (char const *s
, char const *accept
);
44 extern char *strpbrk (char const *cs
, char const *ct
);
45 extern char *strdup (const char *s
);
46 extern char *strndup (const char *s
, size_t n
);
47 extern char *strerror (int errnum
);
48 extern void *memmove (void *dest
, const void *src
, size_t n
);
49 extern char *strrchr (const char *s
, int c
);
50 extern char *strtok (char *str
, const char *delim
);