cp_string(3) - Linux man page

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.

Referenced By

cp_db_connection_execute_statement(3), cp_db_connection_select(3), cp_db_connection_unescape_binary(3), cp_http_response(3), cp_result_set_next(3), cprops(3)