libtools
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
string.h File Reference

Copyright (C) 2016 Oleh Kravchenko oleg@.nosp@m.kaa..nosp@m.org.u.nosp@m.a More...

Go to the source code of this file.

Functions

char * str_cat (char **dest, const char *src)
 Concatenate dynamically allocated string with constant string. More...
 
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. More...
 
char * str_replace (const char *search, const char *replace, const char *subject)
 Replace all occurrences of the search string with the replacement string. More...
 
size_t strlcpy (char *dst, const char *src, size_t size)
 Size-bounded string copying. More...
 
size_t strlcat (char *dst, const char *src, size_t size)
 Size-bounded string concatenation. More...
 

Detailed Description

Copyright (C) 2016 Oleh Kravchenko oleg@.nosp@m.kaa..nosp@m.org.u.nosp@m.a

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.