os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/string.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
 * string.h --
sl@0
     3
 *
sl@0
     4
 *	Declarations of ANSI C library procedures for string handling.
sl@0
     5
 *
sl@0
     6
 * Copyright (c) 1991-1993 The Regents of the University of California.
sl@0
     7
 * Copyright (c) 1994-1996 Sun Microsystems, Inc.
sl@0
     8
 *
sl@0
     9
 * See the file "license.terms" for information on usage and redistribution
sl@0
    10
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
sl@0
    11
 *
sl@0
    12
 * RCS: @(#) $Id: string.h,v 1.4.18.1 2005/04/26 00:46:02 das Exp $
sl@0
    13
 */
sl@0
    14
sl@0
    15
#ifndef _STRING
sl@0
    16
#define _STRING
sl@0
    17
sl@0
    18
#include "tcl.h"
sl@0
    19
sl@0
    20
/*
sl@0
    21
 * The following #include is needed to define size_t. (This used to
sl@0
    22
 * include sys/stdtypes.h but that doesn't exist on older versions
sl@0
    23
 * of SunOS, e.g. 4.0.2, so I'm trying sys/types.h now.... hopefully
sl@0
    24
 * it exists everywhere)
sl@0
    25
 */
sl@0
    26
sl@0
    27
#ifndef MAC_TCL
sl@0
    28
#include <sys/types.h>
sl@0
    29
#endif
sl@0
    30
sl@0
    31
#ifdef __APPLE__
sl@0
    32
extern VOID *		memchr _ANSI_ARGS_((CONST VOID *s, int c, size_t n));
sl@0
    33
#else
sl@0
    34
extern char *		memchr _ANSI_ARGS_((CONST VOID *s, int c, size_t n));
sl@0
    35
#endif
sl@0
    36
extern int		memcmp _ANSI_ARGS_((CONST VOID *s1, CONST VOID *s2,
sl@0
    37
			    size_t n));
sl@0
    38
extern char *		memcpy _ANSI_ARGS_((VOID *t, CONST VOID *f, size_t n));
sl@0
    39
#ifdef NO_MEMMOVE
sl@0
    40
#define memmove(d, s, n) bcopy ((s), (d), (n))
sl@0
    41
#else
sl@0
    42
extern char *		memmove _ANSI_ARGS_((VOID *t, CONST VOID *f,
sl@0
    43
			    size_t n));
sl@0
    44
#endif
sl@0
    45
extern char *		memset _ANSI_ARGS_((VOID *s, int c, size_t n));
sl@0
    46
sl@0
    47
extern int		strcasecmp _ANSI_ARGS_((CONST char *s1,
sl@0
    48
			    CONST char *s2));
sl@0
    49
extern char *		strcat _ANSI_ARGS_((char *dst, CONST char *src));
sl@0
    50
extern char *		strchr _ANSI_ARGS_((CONST char *string, int c));
sl@0
    51
extern int		strcmp _ANSI_ARGS_((CONST char *s1, CONST char *s2));
sl@0
    52
extern char *		strcpy _ANSI_ARGS_((char *dst, CONST char *src));
sl@0
    53
extern size_t		strcspn _ANSI_ARGS_((CONST char *string,
sl@0
    54
			    CONST char *chars));
sl@0
    55
extern char *		strdup _ANSI_ARGS_((CONST char *string));
sl@0
    56
extern char *		strerror _ANSI_ARGS_((int error));
sl@0
    57
extern size_t		strlen _ANSI_ARGS_((CONST char *string));
sl@0
    58
extern int		strncasecmp _ANSI_ARGS_((CONST char *s1,
sl@0
    59
			    CONST char *s2, size_t n));
sl@0
    60
extern char *		strncat _ANSI_ARGS_((char *dst, CONST char *src,
sl@0
    61
			    size_t numChars));
sl@0
    62
extern int		strncmp _ANSI_ARGS_((CONST char *s1, CONST char *s2,
sl@0
    63
			    size_t nChars));
sl@0
    64
extern char *		strncpy _ANSI_ARGS_((char *dst, CONST char *src,
sl@0
    65
			    size_t numChars));
sl@0
    66
extern char *		strpbrk _ANSI_ARGS_((CONST char *string,
sl@0
    67
			    CONST char *chars));
sl@0
    68
extern char *		strrchr _ANSI_ARGS_((CONST char *string, int c));
sl@0
    69
extern size_t		strspn _ANSI_ARGS_((CONST char *string,
sl@0
    70
			    CONST char *chars));
sl@0
    71
extern char *		strstr _ANSI_ARGS_((CONST char *string,
sl@0
    72
			    CONST char *substring));
sl@0
    73
extern char *		strtok _ANSI_ARGS_((char *s, CONST char *delim));
sl@0
    74
sl@0
    75
#endif /* _STRING */