Search
lxdream.org :: lxdream/test/include/string.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/string.h
changeset 185:6755a04c447f
author nkeynes
date Tue Jul 11 01:35:27 2006 +0000 (17 years ago)
permissions -rw-r--r--
last change First commit of system test framework. 3 initial test cases (incomplete):
testide, testmath, and testta
view annotate diff log raw
     1 /*
     2  * string.h
     3  *
     4  * Definitions for memory and string functions.
     5  */
     7 #ifndef _STRING_H_
     8 #define	_STRING_H_
    10 #ifdef __cplusplus
    11 extern "C" {
    12 #endif
    14 #include "_ansi.h"
    16 #define __need_size_t
    17 #include <stddef.h>
    19 #ifndef NULL
    20 #define NULL 0
    21 #endif
    23 _PTR 	 _EXFUN(memchr,(const _PTR, int, size_t));
    24 int 	 _EXFUN(memcmp,(const _PTR, const _PTR, size_t));
    25 _PTR 	 _EXFUN(memcpy,(_PTR, const _PTR, size_t));
    26 _PTR	 _EXFUN(memmove,(_PTR, const _PTR, size_t));
    27 _PTR	 _EXFUN(memset,(_PTR, int, size_t));
    28 char 	*_EXFUN(strcat,(char *, const char *));
    29 char 	*_EXFUN(strchr,(const char *, int));
    30 int	 _EXFUN(strcmp,(const char *, const char *));
    31 int	 _EXFUN(strcoll,(const char *, const char *));
    32 char 	*_EXFUN(strcpy,(char *, const char *));
    33 size_t	 _EXFUN(strcspn,(const char *, const char *));
    34 char 	*_EXFUN(strerror,(int));
    35 size_t	 _EXFUN(strlen,(const char *));
    36 char 	*_EXFUN(strncat,(char *, const char *, size_t));
    37 int	 _EXFUN(strncmp,(const char *, const char *, size_t));
    38 char 	*_EXFUN(strncpy,(char *, const char *, size_t));
    39 char 	*_EXFUN(strpbrk,(const char *, const char *));
    40 char 	*_EXFUN(strrchr,(const char *, int));
    41 size_t	 _EXFUN(strspn,(const char *, const char *));
    42 char 	*_EXFUN(strstr,(const char *, const char *));
    44 #ifndef _REENT_ONLY
    45 char 	*_EXFUN(strtok,(char *, const char *));
    46 #endif
    48 size_t	 _EXFUN(strxfrm,(char *, const char *, size_t));
    50 #ifndef __STRICT_ANSI__
    51 char 	*_EXFUN(strtok_r,(char *, const char *, char **));
    53 int	 _EXFUN(bcmp,(const char *, const char *, size_t));
    54 void	 _EXFUN(bcopy,(const char *, char *, size_t));
    55 void	 _EXFUN(bzero,(char *, size_t));
    56 int	 _EXFUN(ffs,(int));
    57 char 	*_EXFUN(index,(const char *, int));
    58 _PTR	 _EXFUN(memccpy,(_PTR, const _PTR, int, size_t));
    59 char 	*_EXFUN(rindex,(const char *, int));
    60 int	 _EXFUN(strcasecmp,(const char *, const char *));
    61 char 	*_EXFUN(strdup,(const char *));
    62 int	 _EXFUN(strncasecmp,(const char *, const char *, size_t));
    63 char 	*_EXFUN(strsep,(char **, const char *));
    64 char	*_EXFUN(strlwr,(char *));
    65 char	*_EXFUN(strupr,(char *));
    66 #ifdef __CYGWIN32__
    67 char    *_EXFUN(strsignal, (int __signo));
    68 int     _EXFUN(strtosigno, (const char *__name));
    69 #endif
    71 /* These function names are used on Windows and perhaps other systems.  */
    72 #ifndef strcmpi
    73 #define strcmpi strcasecmp
    74 #endif
    75 #ifndef stricmp
    76 #define stricmp strcasecmp
    77 #endif
    78 #ifndef strncmpi
    79 #define strncmpi strncasecmp
    80 #endif
    81 #ifndef strnicmp
    82 #define strnicmp strncasecmp
    83 #endif
    85 #endif /* ! __STRICT_ANSI__ */
    87 #ifdef __cplusplus
    88 }
    89 #endif
    90 #endif /* _STRING_H_ */
.