formats/ini/m_ini_reader.c
/* Counts the number of actual lines (delims) in the pseudo line. The pseudo line itself is
 * one line. The count of delims in the line (quoted key values) are added to the count. */
Counts the number of actual lines (delims) in the pseudo line. The pseudo line itself is
one line. The count of delims in the line (quoted key values) are added to the count.
Counts the number of actual lines ( delims ) in the pseudo line . The pseudo line itself is one line . The count of delims in the line ( quoted key values ) are added to the count .
static size_t M_ini_count_lines(const char *line, const M_ini_settings_t *info)
{
	size_t cnt = 1;
	size_t len;
	size_t i;
	len = M_str_len(line);
	for (i=0; i<len; i++) {
		if (line[i] == M_ini_settings_get_element_delim_char(info)) {
			cnt++;
		}
	}
	return cnt;
}
static size_t M_ini_count_lines ( const char * line , const M_ini_settings_t * info ) { size_t cnt = 1 ; size_t len ; size_t i ; len = M_str_len ( line ) ; for ( i = 0 ; i < len ; i ++ ) { if ( line [ i ] == M_ini_settings_get_element_delim_char ( info ) ) { cnt ++ ; } } return cnt ; }
Counts the number of actual lines (delims) in the pseudo line.
Counts the number of actual lines ( delims ) in the pseudo line .