Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

string.h File Reference

Interface: string functions. More...

#include <mem.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.
void * memset (void *s, int c, size_t n)
 fill memory block with a byte value.
char * strcpy (char *dest, const char *src)
 Copy null-terminated string from src to dest.
int strlen (const char *s)
 Determine string length.
int strcmp (const char *s1, const char *s2)
 Compare two strings.


Detailed Description

Interface: string functions.

Author:
Markus L. Noga <markus@noga.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:
dest destination
src source
size number 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:
s start
c byte fill value
n number of bytes to fill

Definition at line 40 of file memset.c.

References __asm__().

Referenced by kmain(), lcd_init(), rcx_init(), rcxInit(), and srec_load().

int strcmp const char *  s1,
const char *  s2
 

Compare two strings.

Parameters:
s1 first string
s2 second string
Returns:
<0: s1<s2, ==0: s1==s2, >0: s1>s2

Definition at line 31 of file strcmp.c.

Referenced by lx_read(), main(), read_symbols(), and symbols_load().

char* strcpy char *  dest,
const char *  src
 

Copy null-terminated string from src to dest.

Parameters:
src source
dest destination
Returns:
pointer to dest

Definition at line 31 of file strcpy.c.

int strlen const char *  s  ) 
 

Determine string length.

Parameters:
s string
s2 second string
Returns:
string length

Definition at line 31 of file strlen.c.

Referenced by main().


Generated on Fri Feb 25 08:02:42 2005 for brickos by  doxygen 1.3.9.1