MCPcopy Create free account
hub / github.com/couchbase/forestdb / iniparser_getint

Function iniparser_getint

utils/iniparser.cc:757–764  ·  view source on GitHub ↗

-------------------------------------------------------------------------*/ @brief Get the string associated to a key, convert to an int @param d Dictionary to search @param key Key string to look for @param notfound Value to return in case of error @return integer This function queries a dictionary for a key. A key as read from an ini file is given as "section:key". If

Source from the content-addressed store, hash-verified

755 */
756/*--------------------------------------------------------------------------*/
757int iniparser_getint(dictionary * d, char * key, int notfound)
758{
759 char * str ;
760
761 str = iniparser_getstring(d, key, INI_INVALID_KEY);
762 if (str==INI_INVALID_KEY) return notfound ;
763 return atoi(str);
764}
765
766
767/*-------------------------------------------------------------------------*/

Callers

nothing calls this directly

Calls 1

iniparser_getstringFunction · 0.85

Tested by

no test coverage detected