Search
lxdream.org :: lxdream/test/include/string.h :: diff
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 (15 years ago)
permissions -rw-r--r--
last change First commit of system test framework. 3 initial test cases (incomplete):
testide, testmath, and testta
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/include/string.h Tue Jul 11 01:35:27 2006 +0000
1.3 @@ -0,0 +1,90 @@
1.4 +/*
1.5 + * string.h
1.6 + *
1.7 + * Definitions for memory and string functions.
1.8 + */
1.9 +
1.10 +#ifndef _STRING_H_
1.11 +#define _STRING_H_
1.12 +
1.13 +#ifdef __cplusplus
1.14 +extern "C" {
1.15 +#endif
1.16 +
1.17 +#include "_ansi.h"
1.18 +
1.19 +#define __need_size_t
1.20 +#include <stddef.h>
1.21 +
1.22 +#ifndef NULL
1.23 +#define NULL 0
1.24 +#endif
1.25 +
1.26 +_PTR _EXFUN(memchr,(const _PTR, int, size_t));
1.27 +int _EXFUN(memcmp,(const _PTR, const _PTR, size_t));
1.28 +_PTR _EXFUN(memcpy,(_PTR, const _PTR, size_t));
1.29 +_PTR _EXFUN(memmove,(_PTR, const _PTR, size_t));
1.30 +_PTR _EXFUN(memset,(_PTR, int, size_t));
1.31 +char *_EXFUN(strcat,(char *, const char *));
1.32 +char *_EXFUN(strchr,(const char *, int));
1.33 +int _EXFUN(strcmp,(const char *, const char *));
1.34 +int _EXFUN(strcoll,(const char *, const char *));
1.35 +char *_EXFUN(strcpy,(char *, const char *));
1.36 +size_t _EXFUN(strcspn,(const char *, const char *));
1.37 +char *_EXFUN(strerror,(int));
1.38 +size_t _EXFUN(strlen,(const char *));
1.39 +char *_EXFUN(strncat,(char *, const char *, size_t));
1.40 +int _EXFUN(strncmp,(const char *, const char *, size_t));
1.41 +char *_EXFUN(strncpy,(char *, const char *, size_t));
1.42 +char *_EXFUN(strpbrk,(const char *, const char *));
1.43 +char *_EXFUN(strrchr,(const char *, int));
1.44 +size_t _EXFUN(strspn,(const char *, const char *));
1.45 +char *_EXFUN(strstr,(const char *, const char *));
1.46 +
1.47 +#ifndef _REENT_ONLY
1.48 +char *_EXFUN(strtok,(char *, const char *));
1.49 +#endif
1.50 +
1.51 +size_t _EXFUN(strxfrm,(char *, const char *, size_t));
1.52 +
1.53 +#ifndef __STRICT_ANSI__
1.54 +char *_EXFUN(strtok_r,(char *, const char *, char **));
1.55 +
1.56 +int _EXFUN(bcmp,(const char *, const char *, size_t));
1.57 +void _EXFUN(bcopy,(const char *, char *, size_t));
1.58 +void _EXFUN(bzero,(char *, size_t));
1.59 +int _EXFUN(ffs,(int));
1.60 +char *_EXFUN(index,(const char *, int));
1.61 +_PTR _EXFUN(memccpy,(_PTR, const _PTR, int, size_t));
1.62 +char *_EXFUN(rindex,(const char *, int));
1.63 +int _EXFUN(strcasecmp,(const char *, const char *));
1.64 +char *_EXFUN(strdup,(const char *));
1.65 +int _EXFUN(strncasecmp,(const char *, const char *, size_t));
1.66 +char *_EXFUN(strsep,(char **, const char *));
1.67 +char *_EXFUN(strlwr,(char *));
1.68 +char *_EXFUN(strupr,(char *));
1.69 +#ifdef __CYGWIN32__
1.70 +char *_EXFUN(strsignal, (int __signo));
1.71 +int _EXFUN(strtosigno, (const char *__name));
1.72 +#endif
1.73 +
1.74 +/* These function names are used on Windows and perhaps other systems. */
1.75 +#ifndef strcmpi
1.76 +#define strcmpi strcasecmp
1.77 +#endif
1.78 +#ifndef stricmp
1.79 +#define stricmp strcasecmp
1.80 +#endif
1.81 +#ifndef strncmpi
1.82 +#define strncmpi strncasecmp
1.83 +#endif
1.84 +#ifndef strnicmp
1.85 +#define strnicmp strncasecmp
1.86 +#endif
1.87 +
1.88 +#endif /* ! __STRICT_ANSI__ */
1.89 +
1.90 +#ifdef __cplusplus
1.91 +}
1.92 +#endif
1.93 +#endif /* _STRING_H_ */
.