5 #ifndef NDS2_CLIENT_DAQ_BSD_STRING_H
6 #define NDS2_CLIENT_DAQ_BSD_STRING_H
39 size_t _daq_strlcpy(
char* dst,
const char* src,
size_t size );
60 size_t _daq_strlcat(
char* dst,
const char* src,
size_t size );
82 size_t _daq_slprintf(
char* dst,
size_t size,
const char* fmt, ... );
87 #endif // NDS2_CLIENT_DAQ_BSD_STRING_H
size_t _daq_strlremainder(const char *src, size_t size)
Return the number of usable bytes left at the end of the given string.
Definition: daq_bsd_string.c:48
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...
Definition: daq_bsd_string.c:9
size_t _daq_slprintf(char *dest, size_t size, const char *fmt,...)
a length aware printf that appends to dst.
Definition: daq_bsd_string.c:65
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...
Definition: daq_bsd_string.c:29