nds2-client - ClientDeveloper
0.16.8
|
Functions | |
size_t | _daq_strlcpy (char *dst, const char *src, size_t size) |
Copy from src to dest. This copies from src to dest. It will always null terminate dest. More... | |
size_t | _daq_strlcat (char *dst, const char *src, size_t size) |
Append src to dest. This copies from src to the end of dest. It will always null terminate dest. More... | |
size_t | _daq_strlremainder (const char *src, size_t size) |
Return the number of usable bytes left at the end of the given string. More... | |
size_t | _daq_slprintf (char *dest, size_t size, const char *fmt,...) |
a length aware printf that appends to dst. More... | |
size_t _daq_slprintf | ( | char * | dst, |
size_t | size, | ||
const char * | fmt, | ||
... | |||
) |
a length aware printf that appends to dst.
dst | The destination character array to append data to |
size | The total size of the destination buffer |
fmt | The format to apply, interpreted by printf |
... | The arguments to format |
size_t _daq_strlcat | ( | char * | dst, |
const char * | src, | ||
size_t | size | ||
) |
Append src to dest. This copies from src to the end of dest. It will always null terminate dest.
dst | Pointer to the destination which is at least size bytes long (this is the total size, including existing content, not just the remaining buffer space available). |
src | Source buffer, which must be a NULL terminated string |
size | the length of dst (including space for a NULL byte) |
size_t _daq_strlcpy | ( | char * | dst, |
const char * | src, | ||
size_t | size | ||
) |
Copy from src to dest. This copies from src to dest. It will always null terminate dest.
dst | Pointer to the destination which is at least size bytes long |
src | Source buffer, which must be a NULL terminated string |
size | the length of dst (including space for a NULL byte) |
size_t _daq_strlremainder | ( | const char * | src, |
size_t | size | ||
) |
Return the number of usable bytes left at the end of the given string.
src | A NULL terminated string |
size | The maximum size of the string (counting the NULL terminator) |