Added bacnet_strnlen and bacnet_stricmp to avoid libc compiler problems (#857)

* Added bacnet_strnlen and bacnet_stricmp to avoid libc compiler problems

* FIxed compiler warnings in printf conversions.
This commit is contained in:
Steve Karg
2024-11-21 06:43:37 -06:00
committed by GitHub
parent c71b2e3a66
commit 1375347ab6
7 changed files with 64 additions and 63 deletions
+5 -2
View File
@@ -81,8 +81,6 @@ BACNET_STACK_EXPORT
bool characterstring_init_ansi(
BACNET_CHARACTER_STRING *char_string, const char *value);
BACNET_STACK_EXPORT
size_t characterstring_strnlen(const char *str, size_t maxlen);
BACNET_STACK_EXPORT
bool characterstring_init_ansi_safe(
BACNET_CHARACTER_STRING *char_string, const char *value, size_t tmax);
BACNET_STACK_EXPORT
@@ -169,6 +167,11 @@ bool octetstring_value_same(
const BACNET_OCTET_STRING *octet_string1,
const BACNET_OCTET_STRING *octet_string2);
BACNET_STACK_EXPORT
int bacnet_stricmp(const char *a, const char *b);
BACNET_STACK_EXPORT
size_t bacnet_strnlen(const char *str, size_t maxlen);
#ifdef __cplusplus
}
#endif /* __cplusplus */