include/strings.h File Reference

#include <sys/types.h>

Include dependency graph for strings.h:

Go to the source code of this file.

Defines

#define _ABLE_CLIB_STRINGS_H   1

Functions

void bcopy (const void *src, void *dest, size_t sz)
 Copy an array of bytes.
void bzero (void *area, size_t sz)
 Set an area of memory to zero.
int bcmp (const void *s1, const void *s2, size_t n)
 Compare two memory areas.
int strcasecmp (const char *s1, const char *s2)
 Compare two strings ignoring their case.
int strncasecmp (const char *s1, const char *s2, size_t len)
 Compare two strings ignoring their case, potentially bounded by length.


Define Documentation

#define _ABLE_CLIB_STRINGS_H   1


Function Documentation

int bcmp ( const void *  s1,
const void *  s2,
size_t  n 
)

Compare two memory areas.

This function compares two areas of memory.

Deprecated:
This function is deprecated and memcmp should be used.
Parameters:
s1 The first memory area.
s2 The second memory area.
n The length of memory to compare.
Returns:
0 if the areas are the same, non zero otherwise.

void bcopy ( const void *  src,
void *  dest,
size_t  sz 
)

Copy an array of bytes.

This function copies sz bytes from src to dst. The src and dst areas may overlap.

Deprecated:
This call is deprecated and memmove should be used in preference. Care must be taken when performing this conversion as the source and destination arguments are swapped between bcopy and memmove.
Parameters:
src The source byte array.
dest The target byte array.
sz The number of bytes to transfer.

void bzero ( void *  area,
size_t  sz 
)

Set an area of memory to zero.

This function sets sz bytes of memory pointed to by area to zero.

Deprecated:
This function is deprecated and memset should be used in preference.
Parameters:
area The memory to clear.
sz The number of bytes to clear.

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

Compare two strings ignoring their case.

int strncasecmp ( const char *  s1,
const char *  s2,
size_t  len 
)

Compare two strings ignoring their case, potentially bounded by length.


Generated on Tue Jan 20 14:28:58 2009 for ABLE LIBC by  doxygen 1.5.6