libtools
string.h
Go to the documentation of this file.
1 
20 #ifndef __TOOLS_STRING_H
21 #define __TOOLS_STRING_H
22 
38 char *str_cat(char **dest, const char *src);
39 
50 char *str_ncat(char **dest, const char *src, size_t n);
51 
60 char *str_replace(const char *search, const char *replace, const char *subject);
61 
69 size_t strlcpy(char *dst, const char *src, size_t size);
70 
78 size_t strlcat(char *dst, const char *src, size_t size);
79 
82 #endif /* __TOOLS_STRING_H */
char * str_cat(char **dest, const char *src)
Concatenate dynamically allocated string with constant string.
char * str_replace(const char *search, const char *replace, const char *subject)
Replace all occurrences of the search string with the replacement string.
size_t strlcat(char *dst, const char *src, size_t size)
Size-bounded string concatenation.
char * str_ncat(char **dest, const char *src, size_t n)
Similar to str_cat() except it will use at most n bytes from src.
size_t strlcpy(char *dst, const char *src, size_t size)
Size-bounded string copying.