Main Page   Compound List   File List   Header Files   File Members  

string.h File Reference

Generic string functions. More...


Functions

char* strcpy (char *dest, const char *src)
Copies the string pointed to be src (including the terminating `\0' character) to the array pointed to by dest. More...

int strcmp (const char *s1, const char *s2)
Compares the two strings s1 and s2. More...

void* memcpy (void *dest, const void *src, size_t len)
Copies n bytes from memory area src to memory area dest. More...

char* reverse (char *s)
char* strcat (char *s1, const char *s2)
int strlen (const char *s)
char* strncat (char *s1, const char *s2, int n)
int strncmp (const char *s1, const char *s2, int n)
char* strncpy (char *s1, const char *s2, int n)


Detailed Description

Generic string functions.

Function Documentation

char * strcpy (char * dest, const char * src)

Copies the string pointed to be src (including the terminating `\0' character) to the array pointed to by dest.

The strings may not overlap, and the destination string dest must be large enough to receive the copy.

Parameters:
dest   Array to copy into.
src   Array to copy from.
Returns:
A pointer to dest.

int strcmp (const char * s1, const char * s2)

Compares the two strings s1 and s2.

It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.

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

Copies n bytes from memory area src to memory area dest.

The memory areas may not overlap.

Parameters:
dest   Array to copy into.
src   Array to copy from.
len   The length in bytes of src.
Returns:
A pointer to dest.

Generated at Sun May 7 12:17:00 2000 for gbdk-lib by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999