util: Make string-util.h C++-compatible

This commit is contained in:
Austin Clements 2014-07-29 12:48:00 -04:00 committed by David Bremner
parent 8251d639b2
commit a5a47dab87

View file

@ -3,6 +3,10 @@
#include <string.h> #include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
/* like strtok(3), but without state, and doesn't modify s. Return /* like strtok(3), but without state, and doesn't modify s. Return
* value is indicated by pointer and length, not null terminator. * value is indicated by pointer and length, not null terminator.
* *
@ -57,4 +61,8 @@ int
parse_boolean_term (void *ctx, const char *str, parse_boolean_term (void *ctx, const char *str,
char **prefix_out, char **term_out); char **prefix_out, char **term_out);
#ifdef __cplusplus
}
#endif
#endif #endif