string.h
Go to the documentation of this file.
1 
6 /*
7  * The contents of this file are subject to the Mozilla Public License
8  * Version 1.0 (the "License"); you may not use this file except in
9  * compliance with the License. You may obtain a copy of the License
10  * at http://www.mozilla.org/MPL/
11  *
12  * Software distributed under the License is distributed on an "AS IS"
13  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14  * the License for the specific language governing rights and
15  * limitations under the License.
16  *
17  * The Original Code is legOS code, released October 17, 1999.
18  *
19  * The Initial Developer of the Original Code is Markus L. Noga.
20  * Portions created by Markus L. Noga are Copyright (C) 1999
21  * Markus L. Noga. All Rights Reserved.
22  *
23  * Contributor(s): Markus L. Noga <markus@noga.de>
24  */
25 
26 #ifndef __string_h__
27 #define __string_h__
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #include <mem.h>
34 
36 //
37 // Functions
38 //
40 
42 
49 extern void *memcpy(void *dest, const void *src, size_t size);
50 
52 
56 extern void *memset(void *s, int c, size_t n);
57 
59 
63 extern char *strcpy(char *dest, const char *src);
64 
66 
69 extern int strlen(const char *s);
70 
72 
76 extern int strcmp(const char *s1, const char *s2);
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif // __string_h__
strcmp
int strcmp(const char *s1, const char *s2)
Compare two strings.
memcpy
void * memcpy(void *dest, const void *src, size_t size)
copy memory block from src to dest.
strlen
int strlen(const char *s)
Determine string length.
memset
void * memset(void *s, int c, size_t n)
fill memory block with a byte value.
mem.h
Interface: memory data types.
strcpy
char * strcpy(char *dest, const char *src)
Copy null-terminated string from src to dest.

brickOS is released under the Mozilla Public License.
Original code copyright 1998-2005 by the authors.

Generated for brickOS C++ by doxygen 1.8.16