-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
/* header file for BSD strlcat and strlcpy */ | ||
/* 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 */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters