mirror of
https://github.com/open-simh/simh.git
synced 2026-01-19 09:37:50 +00:00
SCP: Allow for locally provided strlcpy and strlcat macros
As indicated in #445
This commit is contained in:
parent
cb7c739b15
commit
b9c9c9ea17
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…
x
Reference in New Issue
Block a user