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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tcl/] [compat/] [string.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/*
2
 * string.h --
3
 *
4
 *      Declarations of ANSI C library procedures for string handling.
5
 *
6
 * Copyright (c) 1991-1993 The Regents of the University of California.
7
 * Copyright (c) 1994-1996 Sun Microsystems, Inc.
8
 *
9
 * See the file "license.terms" for information on usage and redistribution
10
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11
 *
12
 * RCS: @(#) $Id: string.h,v 1.1.1.1 2002-01-16 10:25:23 markom Exp $
13
 */
14
 
15
#ifndef _STRING
16
#define _STRING
17
 
18
#include <tcl.h>
19
 
20
/*
21
 * The following #include is needed to define size_t. (This used to
22
 * include sys/stdtypes.h but that doesn't exist on older versions
23
 * of SunOS, e.g. 4.0.2, so I'm trying sys/types.h now.... hopefully
24
 * it exists everywhere)
25
 */
26
 
27
#ifndef MAC_TCL
28
#include <sys/types.h>
29
#endif
30
 
31
extern char *           memchr _ANSI_ARGS_((CONST VOID *s, int c, size_t n));
32
extern int              memcmp _ANSI_ARGS_((CONST VOID *s1, CONST VOID *s2,
33
                            size_t n));
34
extern char *           memcpy _ANSI_ARGS_((VOID *t, CONST VOID *f, size_t n));
35
extern char *           memmove _ANSI_ARGS_((VOID *t, CONST VOID *f,
36
                            size_t n));
37
extern char *           memset _ANSI_ARGS_((VOID *s, int c, size_t n));
38
 
39
extern int              strcasecmp _ANSI_ARGS_((CONST char *s1,
40
                            CONST char *s2));
41
extern char *           strcat _ANSI_ARGS_((char *dst, CONST char *src));
42
extern char *           strchr _ANSI_ARGS_((CONST char *string, int c));
43
extern int              strcmp _ANSI_ARGS_((CONST char *s1, CONST char *s2));
44
extern char *           strcpy _ANSI_ARGS_((char *dst, CONST char *src));
45
extern size_t           strcspn _ANSI_ARGS_((CONST char *string,
46
                            CONST char *chars));
47
extern char *           strdup _ANSI_ARGS_((CONST char *string));
48
extern char *           strerror _ANSI_ARGS_((int error));
49
extern size_t           strlen _ANSI_ARGS_((CONST char *string));
50
extern int              strncasecmp _ANSI_ARGS_((CONST char *s1,
51
                            CONST char *s2, size_t n));
52
extern char *           strncat _ANSI_ARGS_((char *dst, CONST char *src,
53
                            size_t numChars));
54
extern int              strncmp _ANSI_ARGS_((CONST char *s1, CONST char *s2,
55
                            size_t nChars));
56
extern char *           strncpy _ANSI_ARGS_((char *dst, CONST char *src,
57
                            size_t numChars));
58
extern char *           strpbrk _ANSI_ARGS_((CONST char *string, char *chars));
59
extern char *           strrchr _ANSI_ARGS_((CONST char *string, int c));
60
extern size_t           strspn _ANSI_ARGS_((CONST char *string,
61
                            CONST char *chars));
62
extern char *           strstr _ANSI_ARGS_((CONST char *string,
63
                            CONST char *substring));
64
extern char *           strtok _ANSI_ARGS_((CONST char *s, CONST char *delim));
65
 
66
#endif /* _STRING */

powered by: WebSVN 2.1.0

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