os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/string.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/string.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,75 @@
1.4 +/*
1.5 + * string.h --
1.6 + *
1.7 + * Declarations of ANSI C library procedures for string handling.
1.8 + *
1.9 + * Copyright (c) 1991-1993 The Regents of the University of California.
1.10 + * Copyright (c) 1994-1996 Sun Microsystems, Inc.
1.11 + *
1.12 + * See the file "license.terms" for information on usage and redistribution
1.13 + * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1.14 + *
1.15 + * RCS: @(#) $Id: string.h,v 1.4.18.1 2005/04/26 00:46:02 das Exp $
1.16 + */
1.17 +
1.18 +#ifndef _STRING
1.19 +#define _STRING
1.20 +
1.21 +#include "tcl.h"
1.22 +
1.23 +/*
1.24 + * The following #include is needed to define size_t. (This used to
1.25 + * include sys/stdtypes.h but that doesn't exist on older versions
1.26 + * of SunOS, e.g. 4.0.2, so I'm trying sys/types.h now.... hopefully
1.27 + * it exists everywhere)
1.28 + */
1.29 +
1.30 +#ifndef MAC_TCL
1.31 +#include <sys/types.h>
1.32 +#endif
1.33 +
1.34 +#ifdef __APPLE__
1.35 +extern VOID * memchr _ANSI_ARGS_((CONST VOID *s, int c, size_t n));
1.36 +#else
1.37 +extern char * memchr _ANSI_ARGS_((CONST VOID *s, int c, size_t n));
1.38 +#endif
1.39 +extern int memcmp _ANSI_ARGS_((CONST VOID *s1, CONST VOID *s2,
1.40 + size_t n));
1.41 +extern char * memcpy _ANSI_ARGS_((VOID *t, CONST VOID *f, size_t n));
1.42 +#ifdef NO_MEMMOVE
1.43 +#define memmove(d, s, n) bcopy ((s), (d), (n))
1.44 +#else
1.45 +extern char * memmove _ANSI_ARGS_((VOID *t, CONST VOID *f,
1.46 + size_t n));
1.47 +#endif
1.48 +extern char * memset _ANSI_ARGS_((VOID *s, int c, size_t n));
1.49 +
1.50 +extern int strcasecmp _ANSI_ARGS_((CONST char *s1,
1.51 + CONST char *s2));
1.52 +extern char * strcat _ANSI_ARGS_((char *dst, CONST char *src));
1.53 +extern char * strchr _ANSI_ARGS_((CONST char *string, int c));
1.54 +extern int strcmp _ANSI_ARGS_((CONST char *s1, CONST char *s2));
1.55 +extern char * strcpy _ANSI_ARGS_((char *dst, CONST char *src));
1.56 +extern size_t strcspn _ANSI_ARGS_((CONST char *string,
1.57 + CONST char *chars));
1.58 +extern char * strdup _ANSI_ARGS_((CONST char *string));
1.59 +extern char * strerror _ANSI_ARGS_((int error));
1.60 +extern size_t strlen _ANSI_ARGS_((CONST char *string));
1.61 +extern int strncasecmp _ANSI_ARGS_((CONST char *s1,
1.62 + CONST char *s2, size_t n));
1.63 +extern char * strncat _ANSI_ARGS_((char *dst, CONST char *src,
1.64 + size_t numChars));
1.65 +extern int strncmp _ANSI_ARGS_((CONST char *s1, CONST char *s2,
1.66 + size_t nChars));
1.67 +extern char * strncpy _ANSI_ARGS_((char *dst, CONST char *src,
1.68 + size_t numChars));
1.69 +extern char * strpbrk _ANSI_ARGS_((CONST char *string,
1.70 + CONST char *chars));
1.71 +extern char * strrchr _ANSI_ARGS_((CONST char *string, int c));
1.72 +extern size_t strspn _ANSI_ARGS_((CONST char *string,
1.73 + CONST char *chars));
1.74 +extern char * strstr _ANSI_ARGS_((CONST char *string,
1.75 + CONST char *substring));
1.76 +extern char * strtok _ANSI_ARGS_((char *s, CONST char *delim));
1.77 +
1.78 +#endif /* _STRING */