File: numlib.h

package info (click to toggle)
maildrop 0.75-2.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,760 kB
  • ctags: 1,588
  • sloc: cpp: 9,269; ansic: 6,018; perl: 786; sh: 467; makefile: 398
file content (47 lines) | stat: -rw-r--r-- 1,454 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* DSTART                                                                    */
/*                                                                           */
/*           maildrop - mail delivery agent with filtering abilities         */
/*                                                                           */
/*  Copyright 1998-1999, Double Precision Inc.                               */
/*                                                                           */
/*  This program is distributed under the terms of the GNU General Public    */
/*  License. See COPYING for additional information.                         */
/* DEND                                                                      */
#ifndef	numlib_h
#define	numlib_h

#ifdef	__cplusplus
extern "C" {
#endif

static const char numlib_h_rcsid[]="$Id: numlib.h,v 1.1 1999/09/21 03:58:16 mrsam Exp $";

#if	HAVE_CONFIG_H
#include	"config.h"
#endif

#include	<sys/types.h>
#include	<time.h>

#define	NUMBUFSIZE	60

/* Convert various system types to decimal */

char	*str_time_t(time_t, char *);
char	*str_off_t(off_t, char *);
char	*str_pid_t(pid_t, char *);
char	*str_ino_t(ino_t, char *);
char	*str_uid_t(uid_t, char *);
char	*str_gid_t(gid_t, char *);
char	*str_size_t(size_t, char *);

/* Convert selected system types to hex */

char	*strh_time_t(time_t, char *);
char	*strh_pid_t(pid_t, char *);
char	*strh_ino_t(ino_t, char *);

#ifdef	__cplusplus
}
#endif
#endif