apps/top.c
/**
 * @brief Reset column widths to the minimum required to fit their headings.
 */
@brief Reset column widths to the minimum required to fit their headings.
@brief Reset column widths to the minimum required to fit their headings .
void reset_column_widths(void) {
	for (size_t i = 0; i < sizeof(ColumnDescriptions) / sizeof(*ColumnDescriptions); ++i) {
		ColumnDescriptions[i].width = strlen(ColumnDescriptions[i].title);
	}
}
void reset_column_widths ( void ) { for ( size_t i = 0 ; i < sizeof ( ColumnDescriptions ) / sizeof ( * ColumnDescriptions ) ; ++ i ) { ColumnDescriptions [ i ] . width = strlen ( ColumnDescriptions [ i ] . title ) ; } }
@brief Reset column widths to the minimum required to fit their headings.
@brief Reset column widths to the minimum required to fit their headings .