src/gedlib/node.c
/*=================================================
 * shorten_plac -- Return short form of place value
 * Returns modified input string, or value from placabbr table
 *===============================================*/
- Return short form of place value
Returns modified input string, or value from placabbr table
- Return short form of place value Returns modified input string or value from placabbr table
STRING
shorten_plac (STRING plac)
{
	STRING plac0 = plac, comma, val;
	if (!plac) return NULL;
	comma = (STRING) strrchr(plac, ',');
	if (comma) plac = comma + 1;
	while (*plac++ == ' ')
		;
	plac--;
	if (*plac == 0) return plac0;
	if ((val = valueof_str(placabbvs, plac))) return val;
	return plac;
}
STRING shorten_plac ( STRING plac ) { STRING plac0 = plac , comma , val ; if ( ! plac ) return NULL ; comma = ( STRING ) strrchr ( plac , ' ' ) ; if ( comma ) plac = comma + 1 ; while ( * plac ++ == ' ' ) ; plac -- ; if ( * plac == 0 ) return plac0 ; if ( ( val = valueof_str ( placabbvs , plac ) ) ) return val ; return plac ; }
shorten_plac -- Return short form of place value
 Returns modified input string, or value from placabbr table
shorten_plac -- Return short form of place value Returns modified input string or value from placabbr table