OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tcl/] [compat/] [string.h] - Diff between revs 578 and 1765

Only display areas with differences | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.