src/stdlib/table.c
/*=================================================
 * increment_table_int -- increment an integer element value
 * set to 1 if not found
 *===============================================*/
- increment an integer element value
set to 1 if not found
- increment an integer element value set to 1 if not found
void
increment_table_int (TABLE tab, CNSTRING key)
{
	BOOLEAN found=FALSE;
	INT value = valueofbool_int(tab, key, &found);
	if (found) {
		insert_table_int(tab, key, value+1);
	} else {
		insert_table_int(tab, key, 1);
	}
}
void increment_table_int ( TABLE tab , CNSTRING key ) { BOOLEAN found = FALSE ; INT value = valueofbool_int ( tab , key , & found ) ; if ( found ) { insert_table_int ( tab , key , value + 1 ) ; } else { insert_table_int ( tab , key , 1 ) ; } }
increment_table_int -- increment an integer element value
 set to 1 if not found
increment_table_int -- increment an integer element value set to 1 if not found