t2ex/t2ex_source/include/t2ex/string.h | bare source | permlink (0.02 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * T2EX Software Package 4: * 5: * Copyright 2012 by Ken Sakamura. 6: * This software is distributed under the latest version of T-License 2.x. 7: *---------------------------------------------------------------------- 8: * 9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2012/12/12. 10: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/04. 11: * 12: *---------------------------------------------------------------------- 13: */ 14: /* 15: * This software package is available for use, modification, 16: * and redistribution in accordance with the terms of the attached 17: * T-License 2.x. 18: * If you want to redistribute the source code, you need to attach 19: * the T-License 2.x document. 20: * There's no obligation to publish the content, and no obligation 21: * to disclose it to the TRON Forum if you have modified the 22: * software package. 23: * You can also distribute the modified source code. In this case, 24: * please register the modification to T-Kernel traceability service. 25: * People can know the history of modifications by the service, 26: * and can be sure that the version you have inherited some 27: * modification of a particular version or not. 28: * 29: * http://trace.tron.org/tk/?lang=en 30: * http://trace.tron.org/tk/?lang=ja 31: * 32: * As per the provisions of the T-License 2.x, TRON Forum ensures that 33: * the portion of the software that is copyrighted by Ken Sakamura or 34: * the TRON Forum does not infringe the copyrights of a third party. 35: * However, it does not make any warranty other than this. 36: * DISCLAIMER: TRON Forum and Ken Sakamura shall not be held 37: * responsible for any consequences or damages caused directly or 38: * indirectly by the use of this software package. 39: * 40: * The source codes in bsd_source.tar.gz in this software package are 41: * derived from NetBSD or OpenBSD and not covered under T-License 2.x. 42: * They need to be changed or redistributed according to the 43: * representation of each source header. 44: */ 45: 46: /* 47: * @(#)string.h 48: * 49: */ 50: 51: #ifndef _STRING_H_ 52: #define _STRING_H_ 53: 54: #include <basic.h> 55: #include <errno.h> 56: #include <tk/typedef.h> 57: 58: #ifdef __cplusplus 59: extern "C" { 60: #endif 61: 62: IMPORT void *memccpy(void *dst, const void *src, int c, size_t n); 63: IMPORT void *memchr(const void *s, int c, size_t n); 64: IMPORT int memcmp(const void *s1, const void *s2, size_t n); 65: IMPORT void *memcpy(void *dst, const void *src, size_t n); 66: IMPORT void *memmove(void *dst, const void *src, size_t n); 67: IMPORT void *memset(void *s, int c, size_t n); 68: IMPORT char *strcat(char *dst, const char *src); 69: IMPORT char *strchr(const char *s, int c); 70: IMPORT int strcmp(const char *s1, const char *s2); 71: IMPORT int strcoll(const char *s1, const char *s2); 72: IMPORT char *strcpy(char *dst, const char *src); 73: IMPORT size_t strcspn(const char *s1, const char *s2); 74: IMPORT char *strdup(const char *s); 75: IMPORT size_t strlen(const char *s); 76: IMPORT char *strncat(char *dst, const char *src, size_t n); 77: IMPORT int strncmp(const char *s1, const char *s2, size_t n); 78: IMPORT char *strncpy(char *dst, const char *src, size_t n); 79: IMPORT char *strpbrk(const char *s1, const char *s2); 80: IMPORT char *strrchr(const char *s, int c); 81: IMPORT size_t strspn(const char *s1, const char *s2); 82: IMPORT char *strstr(const char *s1, const char *s2); 83: IMPORT char *strtok_r(char *str, const char *sep, char **lasts); 84: IMPORT size_t strxfrm(char *dst, const char *src, size_t n); 85: IMPORT int strerror_r(errno_t errnum, char *buf, size_t buflen); 86: IMPORT int strercd_r(ER ercd, char *buf, size_t buflen); 87: 88: #ifdef __cplusplus 89: } 90: #endif 91: #endif /* _STRING_H_ */ 92: