| 
    libhpdftbl 1.5.0
    
   Table construction library for Haru PDF library 
   | 
 
Safe version of strncat() and strncpy() taken from the BSD stdlib. More...
#include "stdio.h"#include "stdlib.h"#include "string.h"Functions | |
| size_t | xstrlcpy (char *__restrict dst, const char *__restrict src, size_t dsize) | 
| Safe string copy.  More... | |
| size_t | xstrlcat (char *dst, const char *src, size_t siz) | 
| Safe string concatenation.  More... | |
Safe version of strncat() and strncpy() taken from the BSD stdlib.
| size_t xstrlcat | ( | char * | dst, | 
| const char * | src, | ||
| size_t | siz | ||
| ) | 
Safe string concatenation.
Appends src to string dst of size siz (unlike strncat, siz is the full size of dst, not space left). At most siz-1 characters will be copied. Always NUL terminates (unless siz <= strlen(dst)). Returns strlen(src) + MIN(siz, strlen(initial dst)). If retval >= siz, truncation occurred.
Taken from BSD library.
| dst | Destination buffer | 
| src | Source buffer | 
| siz | Max size of destination buffer including terminating NULL | 
siz then data truncation happened. Referenced by hpdftbl_read_file(), and mkfullpath().
| size_t xstrlcpy | ( | char *__restrict | dst, | 
| const char *__restrict | src, | ||
| size_t | dsize | ||
| ) | 
Safe string copy.
Copy string src to buffer dst of size dsize. At most dsize-1 chars will be copied. Always NUL terminates (unless dsize == 0). Returns strlen(src); if retval >= dsize, truncation occurred.
Taken from BSD library.
| dst | Destination string | 
| src | Source string | 
| dsize | Maximum size of destination |