nds2-client - Developer 0.16.7
Loading...
Searching...
No Matches
daq_bsd_string.h
Go to the documentation of this file.
1//
2// Created by jonathan.hanks on 2/6/20.
3//
4
5#ifndef NDS2_CLIENT_DAQ_BSD_STRING_H
6#define NDS2_CLIENT_DAQ_BSD_STRING_H
7
17#include <stdarg.h>
18#include <stdlib.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
39size_t _daq_strlcpy( char* dst, const char* src, size_t size );
40
60size_t _daq_strlcat( char* dst, const char* src, size_t size );
61
69size_t _daq_strlremainder( const char* src, size_t size );
70
82size_t _daq_slprintf( char* dst, size_t size, const char* fmt, ... );
83#ifdef __cplusplus
84};
85#endif
86
87#endif // NDS2_CLIENT_DAQ_BSD_STRING_H
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_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_slprintf(char *dst, 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