diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-07-07 06:32:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-07-07 06:32:43 (GMT) |
commit | 4c10dfa2a95cea6fc704d68066d0c284cfd79342 (patch) | |
tree | 5827bbc411459800747e21929daecdf99fde7dfd /src/common/extstr.h | |
parent | 3f996be1e5858b54740bf92515795982a16b169a (diff) |
Rewrite core parts of the ROST API.
Diffstat (limited to 'src/common/extstr.h')
-rw-r--r-- | src/common/extstr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/extstr.h b/src/common/extstr.h index c4e671e..a2293be 100644 --- a/src/common/extstr.h +++ b/src/common/extstr.h @@ -79,6 +79,12 @@ bool _endswith(const char *, const char *, const char **); #define startswith(str, prefix) _startswith(str, prefix, NULL) #define endswith(str, suffix) _endswith(str, suffix, NULL) +/* Recherche une séquence d'octets dans un ensemble de données. */ +const void *memcasemem(const void *, size_t, const void *, size_t); + +/* Compare sans casse deux série d'octets entre elles. */ +int memcasecmp(const void *, const void *, size_t); + #endif /* _COMMON_EXTSTR_H */ |