cp_string(3)
| cp_string(3) | libcprops - cp_string | cp_string(3) |
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.
| MARCH 2006 | libcprops.0.0.11 |
