1 /* include/libc/string.h
3 * Copyright (C) 2007 David Cohen <dacohen@gmail.com>
4 * Copyright (C) 2007 Felipe Balbi <me@felipebalbi.com>
6 * This file is part of Tinyx Nanokernel Project.
8 * Tinyx 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 * Tinyx 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 Tinyx. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef __TINYX_LIBC_STRING_H
23 #define __TINYX_LIBC_STRING_H
25 #include <asm/stddef.h>
27 void *memset(void *mem
, int data
, size_t count
);
28 void *memcpy(void *dest
, const void *src
, size_t count
);
29 char *strcat(char *str1
, const char *str2
);
30 char *strchr(const char *str
, int ch
);
31 int strcoll(const char *str1
, const char *str2
);
32 int strcmp(const char *str1
, const char *str2
);
33 char *strcpy(char *str1
, const char *str2
);
34 char *strerror(int errnum
);
35 size_t strlen(const char *str
);
36 char *strncat(char *str1
, const char *str2
, size_t count
);
37 int strncmp(const char *str1
, const char *str2
, size_t count
);
38 char *strncpy(char *str1
, const char *str2
, size_t count
);
40 #endif /* __TINYX_LIBC_STRING_H */