cp_string

Section: libcprops - cp_string (3)
Updated: MARCH 2006
Index Return to Main Contents
 

NAME

cp_string - a string wrapper  

INTERFACE

the following is a summary of functions provided by <cprops/str.h>.

cp_string *cp_string_create(char *data, int len);
void cp_string_delete(cp_string *str);
void cp_string_reset(cp_string *str);
cp_string *cp_string_cstrcpy(cp_string *str, char *cstr);
cp_string *cp_string_cpy(cp_string *dst, cp_string *src);
cp_string *cp_string_dup(cp_string *src);
cp_string *cp_string_cstrdup(char *src);
cp_string *cp_string_cat(cp_string *str, cp_string *appendum);
cp_string *cp_string_cat_bin(cp_string *str, void *bin, int len);
cp_string *cp_string_cstrcat(cp_string *str, char *cstr);
int cp_string_cmp(cp_string *s1, cp_string *s2);
int cp_string_len(cp_string *str);
char *cp_string_tocstr(cp_string *str);
cp_string *cp_string_read(int fd, int len);
int cp_string_write(cp_string *str, int fd);
void cp_string_dump(cp_string *str);
void cp_string_flip(cp_string *str);  

DESCRIPTION

cp_string is a generalized string implementation. The string length is managed by the wrapper thereby making string length lookup trivial and more importantly, allowing null bytes and therefor binary data.

For more detailed descriptions see the man pages for the individual functions.


 

Index

NAME
INTERFACE
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 23:42:32 GMT, May 09, 2006