change gdium conf to print message out both on uart and lcd
[pmon-gdium.git] / include / string.h
blob0532bf81b01e6ae0adc8ac3e2541ff9d98a85a52
1 /* $Id: string.h,v 1.1.1.1 2006/09/14 01:59:06 root Exp $ */
3 /*
4 * Copyright (c) 2000 Opsycon AB (www.opsycon.se)
5 * Copyright (c) 2000 Rtmx, Inc (www.rtmx.com)
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 * must display the following acknowledgement:
17 * This product includes software developed for Rtmx, Inc by
18 * Opsycon Open System Consulting AB, Sweden.
19 * 4. The name of the author may not be used to endorse or promote products
20 * derived from this software without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
23 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
26 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
35 #ifndef _STRING_H_
36 #define _STRING_H_
37 #include <machine/ansi.h>
39 #ifdef _BSD_SIZE_T_
40 typedef _BSD_SIZE_T_ size_t;
41 #undef _BSD_SIZE_T_
42 #endif
44 #ifndef NULL
45 #define NULL 0
46 #endif
48 #include <sys/cdefs.h>
50 __BEGIN_DECLS
51 void bzero __P((void *, size_t));
52 char *strcat __P((char *, const char *));
53 char *strncat __P((char *, const char *, size_t));
54 char *strchr __P((const char *, int));
55 char *strnchr __P((const char *, char, size_t));
56 char *strncpy __P((char *, const char *, size_t));
57 int strncmp __P((const char *, const char *, size_t));
58 char *strcpy __P((char *, const char *));
59 char *strrchr __P((const char *, int));
60 char *strpbrk __P((const char *, const char *));
61 size_t strlen __P((const char *));
62 char *strtok __P((char *, const char *));
63 char *strstr __P((const char *, const char *));
64 char *strerror __P((int));
65 int strcasecmp __P((const char *, const char *));
66 int strncasecmp __P((const char *, const char *, size_t));
67 void *memchr __P((const void *, int, size_t));
69 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
70 char *index __P((const char *, int));
71 char *rindex __P((const char *, int));
73 char *strdchr __P((char *));
74 char *strichr __P((char *, int));
75 void stristr __P((char *, const char *));
76 char *strccat __P((char *, int));
77 void strmerge __P((char *, const char *));
78 int strspn __P((const char *, const char *));
79 int strcspn __P((const char *, const char *));
80 int strempty __P((const char *));
81 char *getword __P((char *, const char *));
82 int strnwrd __P((const char *));
83 int wordsz __P((const char *));
84 char *strset __P((const char *, const char *));
85 char *strrset __P((const char *, const char *));
86 char *strbalp __P((const char *));
87 char *strrpset __P((const char *, const char *));
88 char *strrrot __P((char *));
89 void strsort __P((char *));
90 #define strequ(a, b) (strcmp(a,b) ? 1 : 0)
91 int striequ __P((const char *, const char *));
92 int strbequ __P((const char *, const char *));
93 int strpat __P((const char *, const char *));
94 char *strposn __P((const char *, const char *));
95 char *cc2str __P((char *, int));
96 int str2cc __P((const char *));
97 int argvize __P((char *[], char *));
98 int ffs __P((int));
99 void bcopy __P((const char *, char *, size_t));
100 int bcmp __P((const void *, const void *, size_t));
101 void str_fmt __P((char *, int, int));
102 void strtoupper __P((char *));
103 #endif
105 __END_DECLS
107 /* definitions for fmt parameter of str_fmt(p,width,fmt) */
108 #define FMT_RJUST 0
109 #define FMT_LJUST 1
110 #define FMT_RJUST0 2
111 #define FMT_CENTER 3
113 #endif /* _STRING_H_ */