formats/ini/m_ini_reader.c
/* Determine the element time from a string. */
Determine the element time from a string.
Determine the element time from a string .
static M_ini_element_type_t M_ini_reader_determine_type(const char *s, const M_ini_settings_t *info)
{
	if (s == NULL || *s == '\0') {
		return M_INI_ELEMENT_TYPE_EMPTY_LINE;
	}
	if ((unsigned char)*s == M_ini_settings_get_comment_char(info)) {
		return M_INI_ELEMENT_TYPE_COMMENT;
	}
	if (*s == '[') {
		return M_INI_ELEMENT_TYPE_SECTION;
	}
	return M_INI_ELEMENT_TYPE_KV;
}
static M_ini_element_type_t M_ini_reader_determine_type ( const char * s , const M_ini_settings_t * info ) { if ( s == NULL || * s == ' \0 ' ) { return M_INI_ELEMENT_TYPE_EMPTY_LINE ; } if ( ( unsigned char ) * s == M_ini_settings_get_comment_char ( info ) ) { return M_INI_ELEMENT_TYPE_COMMENT ; } if ( * s == ' ' ) { return M_INI_ELEMENT_TYPE_SECTION ; } return M_INI_ELEMENT_TYPE_KV ; }
Determine the element time from a string.
Determine the element time from a string .
/* Assume that we have a kv at this point. */