summaryrefslogtreecommitdiffstats
path: root/numlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'numlib.h')
-rw-r--r--numlib.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/numlib.h b/numlib.h
new file mode 100644
index 0000000..d36a791
--- /dev/null
+++ b/numlib.h
@@ -0,0 +1,45 @@
1#ifndef numlib_h
2#define numlib_h
3
4/*
5** Copyright 1998 - 1999 Double Precision, Inc.
6** See COPYING for distribution information.
7*/
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13static const char numlib_h_rcsid[]="$Id: numlib.h,v 1.3 2001/08/12 15:46:40 mrsam Exp $";
14
15#if HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <sys/types.h>
20#include <time.h>
21
22#define NUMBUFSIZE 60
23
24/* Convert various system types to decimal */
25
26char *str_time_t(time_t, char *);
27char *str_off_t(off_t, char *);
28char *str_pid_t(pid_t, char *);
29char *str_ino_t(ino_t, char *);
30char *str_uid_t(uid_t, char *);
31char *str_gid_t(gid_t, char *);
32char *str_size_t(size_t, char *);
33
34char *str_sizekb(unsigned long, char *); /* X Kb or X Mb */
35
36/* Convert selected system types to hex */
37
38char *strh_time_t(time_t, char *);
39char *strh_pid_t(pid_t, char *);
40char *strh_ino_t(ino_t, char *);
41
42#ifdef __cplusplus
43}
44#endif
45#endif