17 lines
401 B
C
17 lines
401 B
C
|
|
/* strl_fn.h - header file for BSD strlcat and strlcpy */
|
||
|
|
|
||
|
|
#ifndef __STRLFUNCS_H
|
||
|
|
#define __STRLFUNCS_H
|
||
|
|
|
||
|
|
/* use our own copies of strlcpy and strlcat taken from OpenBSD */
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
extern size_t q_strlcpy (char *dst, const char *src, size_t size);
|
||
|
|
extern size_t q_strlcat (char *dst, const char *src, size_t size);
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif /* __STRLFUNCS_H */
|