15 lines
460 B
C
15 lines
460 B
C
#include <ctype.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
int get_file_line_value(char *filename, int linenum);
|
|
///_|> descry: Get the integer at a specific line in a value. First line in
|
|
/// file is line num
|
|
///_|> filename: file to search
|
|
///_|> linenum: line to read
|
|
///_|> returning: integer thats found
|
|
|
|
long read_cpu_util();
|
|
///_|> decry: Read total cpu time usage from /proc/stat
|
|
///_|> returning: cpu usage since boot
|