string.h File Reference

Interface: string functions. More...

#include <mem.h>
Include dependency graph for string.h:

Go to the source code of this file.

Functions

void * memcpy (void *dest, const void *src, size_t size)
 copy memory block from src to dest. More...
 
void * memset (void *s, int c, size_t n)
 fill memory block with a byte value. More...
 
char * strcpy (char *dest, const char *src)
 Copy null-terminated string from src to dest. More...
 
int strlen (const char *s)
 Determine string length. More...
 
int strcmp (const char *s1, const char *s2)
 Compare two strings. More...
 

Detailed Description

Interface: string functions.

Author
Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de

Definition in file string.h.

Function Documentation

void* memcpy ( void *  dest,
const void *  src,
size_t  size 
)

copy memory block from src to dest.

Parameters
destdestination
srcsource
sizenumber of bytes to copy
Warning
behaviour is undefined in case source and destination blocks overlap.
void* memset ( void *  s,
int  c,
size_t  n 
)

fill memory block with a byte value.

Parameters
sstart
cbyte fill value
nnumber of bytes to fill
int strcmp ( const char *  s1,
const char *  s2 
)

Compare two strings.

Parameters
s1first string
s2second string
Returns
<0: s1<s2, ==0: s1==s2, >0: s1>s2
char* strcpy ( char *  dest,
const char *  src 
)

Copy null-terminated string from src to dest.

Parameters
srcsource
destdestination
Returns
pointer to dest
int strlen ( const char *  s)

Determine string length.

Parameters
sstring
Returns
string length

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

Generated for brickOS C by doxygen 1.8.11