#include <string.h>
#include <lal/LALStdlib.h>
#include <lal/LALString.h>
Include dependency graph for LALString.c:

Go to the source code of this file.
Functions | |
| NRCSID (LALSTRINGC,"$Id: LALString.c,v 1.2 2007/06/08 14:41:53 bema Exp $") | |
| char * | XLALStringAppend (char *s, const char *append) |
| Like strcat but dynamically reallocates string with LALRealloc. | |
| char * | XLALStringDuplicate (const char *s) |
| Like strdup but uses LAL allocation routines (free with LALFree). | |
| size_t | XLALStringCopy (char *dst, const char *src, size_t size) |
| Copy sources string src to destination string dst. | |
| size_t | XLALStringConcatenate (char *dst, const char *src, size_t size) |
| Concatenate sources string src to the end of destination string dst. | |
D. E.
Definition in file LALString.c.
| NRCSID | ( | LALSTRINGC | , | |
| "$Id: LALString. | c, | |||
| v 1.2 2007/06/08 14:41:53 bema Exp $" | ||||
| ) |
| char* XLALStringAppend | ( | char * | s, | |
| const char * | append | |||
| ) |
Like strcat but dynamically reallocates string with LALRealloc.
Definition at line 36 of file LALString.c.
| char* XLALStringDuplicate | ( | const char * | s | ) |
Like strdup but uses LAL allocation routines (free with LALFree).
Definition at line 53 of file LALString.c.
| size_t XLALStringCopy | ( | char * | dst, | |
| const char * | src, | |||
| size_t | size | |||
| ) |
Copy sources string src to destination string dst.
Up to size - 1 characters are copied and destination string dst is guaranteed to be NUL-terminated. Return value is the length of source string src. If this is greater than or equal to the size of the destination string buffer, size, then truncation has occurred. Should be nearly equivalent to strlcpy.
Definition at line 66 of file LALString.c.
| size_t XLALStringConcatenate | ( | char * | dst, | |
| const char * | src, | |||
| size_t | size | |||
| ) |
Concatenate sources string src to the end of destination string dst.
Characters are added to destination string dst until the source string src is exhausted or the length of destination string dst is size - 1 characters. Destination string dst is guaranteed to be NUL-terminated. Return value is the initial length of destination string dst plus the length of source string src. If this is greater than or equal to the size of the destination string buffer, size, then truncation has occurred. Should be nearly equivalent to strlcat.
Definition at line 92 of file LALString.c.
1.5.2