apps/top.c
/**
 * @brief Switch sorting to the next column.
 */
@brief Switch sorting to the next column.
@brief Switch sorting to the next column .
static void next_sort_order(void) {
	size_t column_count = sizeof(columns)/sizeof(*columns);
	for (size_t i = 0; i < column_count; ++i) {
		if (columns[i] == sort_column) {
			sort_column = columns[(i + 1) % column_count];
			return;
		}
	}
}
static void next_sort_order ( void ) { size_t column_count = sizeof ( columns ) / sizeof ( * columns ) ; for ( size_t i = 0 ; i < column_count ; ++ i ) { if ( columns [ i ] == sort_column ) { sort_column = columns [ ( i + 1 ) % column_count ] ; return ; } } }
@brief Switch sorting to the next column.
@brief Switch sorting to the next column .