diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 8d7f5f754..26440cb1d 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -435,4 +435,18 @@ const char * TALER_yna_to_string (enum TALER_EXCHANGE_YesNoAll yna); +#ifdef __APPLE__ +/** + * Returns the first occurence of `c` in `s`, or returns the null-byte + * terminating the string if it does not occur. + * + * @param s the string to search in + * @param c the character to search for + * @return char* the first occurence of `c` in `s` + */ +char * strchrnul (const char *s, int c); + +#endif + + #endif |