sl@0: /* sl@0: * string.h -- sl@0: * sl@0: * Declarations of ANSI C library procedures for string handling. sl@0: * sl@0: * Copyright (c) 1991-1993 The Regents of the University of California. sl@0: * Copyright (c) 1994-1996 Sun Microsystems, Inc. sl@0: * sl@0: * See the file "license.terms" for information on usage and redistribution sl@0: * of this file, and for a DISCLAIMER OF ALL WARRANTIES. sl@0: * sl@0: * RCS: @(#) $Id: string.h,v 1.4.18.1 2005/04/26 00:46:02 das Exp $ sl@0: */ sl@0: sl@0: #ifndef _STRING sl@0: #define _STRING sl@0: sl@0: #include "tcl.h" sl@0: sl@0: /* sl@0: * The following #include is needed to define size_t. (This used to sl@0: * include sys/stdtypes.h but that doesn't exist on older versions sl@0: * of SunOS, e.g. 4.0.2, so I'm trying sys/types.h now.... hopefully sl@0: * it exists everywhere) sl@0: */ sl@0: sl@0: #ifndef MAC_TCL sl@0: #include sl@0: #endif sl@0: sl@0: #ifdef __APPLE__ sl@0: extern VOID * memchr _ANSI_ARGS_((CONST VOID *s, int c, size_t n)); sl@0: #else sl@0: extern char * memchr _ANSI_ARGS_((CONST VOID *s, int c, size_t n)); sl@0: #endif sl@0: extern int memcmp _ANSI_ARGS_((CONST VOID *s1, CONST VOID *s2, sl@0: size_t n)); sl@0: extern char * memcpy _ANSI_ARGS_((VOID *t, CONST VOID *f, size_t n)); sl@0: #ifdef NO_MEMMOVE sl@0: #define memmove(d, s, n) bcopy ((s), (d), (n)) sl@0: #else sl@0: extern char * memmove _ANSI_ARGS_((VOID *t, CONST VOID *f, sl@0: size_t n)); sl@0: #endif sl@0: extern char * memset _ANSI_ARGS_((VOID *s, int c, size_t n)); sl@0: sl@0: extern int strcasecmp _ANSI_ARGS_((CONST char *s1, sl@0: CONST char *s2)); sl@0: extern char * strcat _ANSI_ARGS_((char *dst, CONST char *src)); sl@0: extern char * strchr _ANSI_ARGS_((CONST char *string, int c)); sl@0: extern int strcmp _ANSI_ARGS_((CONST char *s1, CONST char *s2)); sl@0: extern char * strcpy _ANSI_ARGS_((char *dst, CONST char *src)); sl@0: extern size_t strcspn _ANSI_ARGS_((CONST char *string, sl@0: CONST char *chars)); sl@0: extern char * strdup _ANSI_ARGS_((CONST char *string)); sl@0: extern char * strerror _ANSI_ARGS_((int error)); sl@0: extern size_t strlen _ANSI_ARGS_((CONST char *string)); sl@0: extern int strncasecmp _ANSI_ARGS_((CONST char *s1, sl@0: CONST char *s2, size_t n)); sl@0: extern char * strncat _ANSI_ARGS_((char *dst, CONST char *src, sl@0: size_t numChars)); sl@0: extern int strncmp _ANSI_ARGS_((CONST char *s1, CONST char *s2, sl@0: size_t nChars)); sl@0: extern char * strncpy _ANSI_ARGS_((char *dst, CONST char *src, sl@0: size_t numChars)); sl@0: extern char * strpbrk _ANSI_ARGS_((CONST char *string, sl@0: CONST char *chars)); sl@0: extern char * strrchr _ANSI_ARGS_((CONST char *string, int c)); sl@0: extern size_t strspn _ANSI_ARGS_((CONST char *string, sl@0: CONST char *chars)); sl@0: extern char * strstr _ANSI_ARGS_((CONST char *string, sl@0: CONST char *substring)); sl@0: extern char * strtok _ANSI_ARGS_((char *s, CONST char *delim)); sl@0: sl@0: #endif /* _STRING */