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