Main Page | Data Structures | File List | Globals

string/string.h File Reference

String manipulation. More...

#include <stddef.h>

Functions

void bzero (void *b, size_t length)
void * memset (const void *dst, int c, size_t length)
void bcopy (const void *in, void *out, size_t n)
void * memcpy (void *out, const void *in, size_t n)
void * memmove (void *dst, const void *src, size_t length)
char * strchr (const char *string, int c)
char * strrchr (const char *string, int c)
void * memchr (const void *src, int c, size_t length)
int memcmp (const void *s1, const void *s2, size_t n)
size_t strlen (const char *str)
char * strcpy (char *dst, const char *src)
char * strncpy (char *dst, const char *src, size_t length)
int strcmp (const char *a, const char *b)
int strncmp (const char *a, const char *b, size_t length)
char * strcat (char *dst, const char *src)
char * strncat (char *dst, const char *src, size_t length)


Detailed Description

String manipulation.


Function Documentation

void bcopy const void *  in,
void *  out,
size_t  n
 

Copy the first n bytes from in to out. The buffers may overlap.

void bzero void *  b,
size_t  length
 

Clear the first length bytes of b

void* memchr const void *  src,
int  c,
size_t  length
 

Search a byte in the first length bytes of a buffer and returns a pointer to it in the buffer or NULL if not present.

int memcmp const void *  s1,
const void *  s2,
size_t  n
 

Compare the first n bytes of two buffers and returns the lexicographic order.

void* memcpy void *  out,
const void *  in,
size_t  n
 

Copy the first n bytes from in to out. The buffers may overlap. Returns out.

void* memmove void *  dst,
const void *  src,
size_t  length
 

Copy the first n bytes from in to out. The buffers may overlap. Returns out.

void* memset const void *  dst,
int  c,
size_t  length
 

Set the first length bytes of dst to the character c

char* strcat char *  dst,
const char *  src
 

Append the src string at the end of the dst string

char* strchr const char *  string,
int  c
 

Search a character in a string from left to right and returns a pointer to it in the string or NULL if not present.

int strcmp const char *  a,
const char *  b
 

Alphabetical order of string a and b.

char* strcpy char *  dst,
const char *  src
 

Copy the src string in the dst string. Returns a pointer to the end of the copy.

size_t strlen const char *  str  ) 
 

Compute the length of the string (terminated by a null byte)

char* strncat char *  dst,
const char *  src,
size_t  length
 

Append the first length characters (or less) of the src string at the end of the dst string.

int strncmp const char *  a,
const char *  b,
size_t  length
 

Alphabetical order of at most the length first characters of a and b.

char* strncpy char *  dst,
const char *  src,
size_t  length
 

Copy at most length character of src string in dst string. Returns a pointer to the end of the copy.

char* strrchr const char *  string,
int  c
 

Search a character in a string from right to left and returns a pointer to it in the string or NULL if not present.


Generated on Tue Dec 5 18:32:03 2006 for Jaguar C library by  doxygen 1.4.4