formats/ini/m_ini_reader.c
/* M_ini_reader_determine_type should be used to determine if this is a section before calling this function.
 * This function does not check that the input conforms to the type. */
M_ini_reader_determine_type should be used to determine if this is a section before calling this function.
This function does not check that the input conforms to the type.
M_ini_reader_determine_type should be used to determine if this is a section before calling this function . This function does not check that the input conforms to the type .
static M_bool M_ini_reader_parse_comment(const char *line, const M_ini_settings_t *info, M_ini_element_t *elem)
{
	char   *s;
	size_t  len;
	(void)info;
	s = M_strdup(line);
	len = M_str_len(s);
	M_mem_move(s, s+1, len-1);
	s[len-1] = '\0';
	M_ini_element_comment_set_val(elem, s);
	M_free(s);
	return M_TRUE;
}
static M_bool M_ini_reader_parse_comment ( const char * line , const M_ini_settings_t * info , M_ini_element_t * elem ) { char * s ; size_t len ; ( void ) info ; s = M_strdup ( line ) ; len = M_str_len ( s ) ; M_mem_move ( s , s + 1 , len - 1 ) ; s [ len - 1 ] = ' \0 ' ; M_ini_element_comment_set_val ( elem , s ) ; M_free ( s ) ; return M_TRUE ; }
M_ini_reader_determine_type should be used to determine if this is a section before calling this function.
M_ini_reader_determine_type should be used to determine if this is a section before calling this function .
/* Remove the comment character. */ //	M_str_trim(s);