SCP: Allow for locally provided strlcpy and strlcat macros
As indicated in #445
This commit is contained in:
parent
cb7c739b15
commit
b9c9c9ea17
1 changed files with 4 additions and 0 deletions
4
scp.h
4
scp.h
|
@ -160,8 +160,12 @@ int sim_strncasecmp (const char *string1, const char *string2, size_t len);
|
|||
int sim_strcasecmp (const char *string1, const char *string2);
|
||||
size_t sim_strlcat (char *dst, const char *src, size_t size);
|
||||
size_t sim_strlcpy (char *dst, const char *src, size_t size);
|
||||
#ifndef strlcpy
|
||||
#define strlcpy(dst, src, size) sim_strlcpy((dst), (src), (size))
|
||||
#endif
|
||||
#ifndef strlcat
|
||||
#define strlcat(dst, src, size) sim_strlcat((dst), (src), (size))
|
||||
#endif
|
||||
#ifndef strncasecmp
|
||||
#define strncasecmp(str1, str2, len) sim_strncasecmp((str1), (str2), (len))
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue