xref: /freebsd/usr.bin/top/utils.h (revision 2008043f386721d58158e37e0d7e50df8095942d)
1 /*
2  *
3  *  Top users/processes display for Unix
4  *
5  *  This program may be freely redistributed,
6  *  but this entire comment MUST remain intact.
7  *
8  *  Copyright (c) 1984, 1989, William LeFebvre, Rice University
9  *  Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
10  */
11 
12 #include <unistd.h>
13 
14 int atoiwi(const char *);
15 char *itoa(unsigned int);
16 char *itoa7(int);
17 int digits(int);
18 const char **argparse(char *, int *);
19 long percentages(int, int *, long *, long *, long *);
20 const char *format_time(long);
21 char *format_k(int64_t);
22 int string_index(const char *string, const char * const *array);
23 int find_pid(pid_t pid);
24 
25