string.h File Reference

#include <linux/types.h>

Go to the source code of this file.

Functions

char * strcpy (char *dest, const char *src)
char * strncpy (char *dest, const char *src, size_t count)
char * strcat (char *dest, const char *src)
char * strncat (char *dest, const char *src, size_t count)
int strcmp (const char *cs, const char *ct)
int strncmp (const char *cs, const char *ct, size_t count)
char * strchr (const char *s, char c)
char * strrchr (const char *s, char c)
size_t strspn (const char *cs, const char *ct)
size_t strcspn (const char *cs, const char *ct)
char * strpbrk (const char *cs, const char *ct)
char * strstr (const char *cs, const char *ct)
size_t strlen (const char *s)
char * strtok (char *s, const char *ct)
void * memcpy (void *to, const void *from, size_t n)
void * memmove (void *dest, const void *src, size_t n)
int memcmp (const void *cs, const void *ct, size_t count)
void * memchr (const void *cs, char c, size_t count)
void * memset (void *s, char c, size_t count)

Variables

char * ___strtok


Function Documentation

void* memchr ( const void *  cs,
char  c,
size_t  count 
) [inline]

Definition at line 396 of file string.h.

References NULL.

int memcmp ( const void *  cs,
const void *  ct,
size_t  count 
) [inline]

Definition at line 380 of file string.h.

void* memcpy ( void *  to,
const void *  from,
size_t  n 
) [inline]

< no output

Definition at line 339 of file string.h.

void* memmove ( void *  dest,
const void *  src,
size_t  n 
) [inline]

< no output

< no output

Definition at line 358 of file string.h.

void* memset ( void *  s,
char  c,
size_t  count 
) [inline]

< no output

Definition at line 412 of file string.h.

char* strcat ( char *  dest,
const char *  src 
) [inline]

< no output

Definition at line 55 of file string.h.

char* strchr ( const char *  s,
char  c 
) [inline]

Definition at line 131 of file string.h.

int strcmp ( const char *  cs,
const char *  ct 
) [inline]

Definition at line 91 of file string.h.

char* strcpy ( char *  dest,
const char *  src 
) [inline]

This string-include defines all string functions as inline functions. Use gcc. It also assumes ds=es=data space, this should be normal. Most of the string-functions are rather heavily hand-optimized, see especially strtok,strstr,str[c]spn. They should work, but are not very easy to understand. Everything is done entirely within the register set, making the functions fast and clean. String instructions have been used through-out, making for "slightly" unclear code :-)

Copyright (C) 1991, 1992 Linus Torvalds

< no output

Definition at line 26 of file string.h.

size_t strcspn ( const char *  cs,
const char *  ct 
) [inline]

Definition at line 188 of file string.h.

size_t strlen ( const char *  s  )  [inline]

Definition at line 266 of file string.h.

char* strncat ( char *  dest,
const char *  src,
size_t  count 
) [inline]

< no output

Definition at line 70 of file string.h.

int strncmp ( const char *  cs,
const char *  ct,
size_t  count 
) [inline]

Definition at line 110 of file string.h.

char* strncpy ( char *  dest,
const char *  src,
size_t  count 
) [inline]

< no output

Definition at line 38 of file string.h.

char* strpbrk ( const char *  cs,
const char *  ct 
) [inline]

Definition at line 212 of file string.h.

char* strrchr ( const char *  s,
char  c 
) [inline]

Definition at line 148 of file string.h.

size_t strspn ( const char *  cs,
const char *  ct 
) [inline]

Definition at line 164 of file string.h.

char* strstr ( const char *  cs,
const char *  ct 
) [inline]

< NOTE! This also sets Z if searchstring=''

< also works for empty string, see above

Definition at line 239 of file string.h.

char* strtok ( char *  s,
const char *  ct 
) [inline]

< empty delimeter-string

Definition at line 280 of file string.h.

References ___strtok.


Variable Documentation

char* ___strtok

Referenced by strtok().


Generated on Mon May 1 21:47:01 2006 for KernelAPI by  doxygen 1.4.6-5