--- embedaddon/confuse/doc/tutorial-html/ar01s07.html 2017/01/24 14:48:55 1.1.1.1 +++ embedaddon/confuse/doc/tutorial-html/ar01s07.html 2021/03/17 00:49:17 1.1.1.2 @@ -1,9 +1,8 @@ - - -7. Value parsing callback

7. Value parsing callback

+ +7. Value parsing callback

7. Value parsing callback

A value parsing callback is another kind of callback function available in libConfuse. This function is used to map a string into - some other other value. One example is to extend a boolean option + some other value. One example is to extend a boolean option to accept the values "yes", "no" and "ask" (or perhaps "true", "false" and "maybe"). Those values should be mapped to the integers 1, 2 and 3. @@ -12,4 +11,4 @@ typedef int (*cfg_callback_t)(cfg_t *cfg, cfg_opt_t *o const char *value, void *result);

-

+

\ No newline at end of file