diff options
author | Claudio Fontana <sick_soul@users.sourceforge.net> | 2005-12-11 13:22:29 +0000 |
---|---|---|
committer | Claudio Fontana <sick_soul@users.sourceforge.net> | 2005-12-11 13:22:29 +0000 |
commit | 5e2d8d624da4305197cce508b3bf271fd41c430a (patch) | |
tree | 4fec493a6d52d82de91b4add446c2e812713f01d /lib/inttostr.h | |
parent | 154c7adf71bab69829954a310f3ae02837ec5e7d (diff) | |
download | idutils-5e2d8d624da4305197cce508b3bf271fd41c430a.tar.gz idutils-5e2d8d624da4305197cce508b3bf271fd41c430a.tar.bz2 idutils-5e2d8d624da4305197cce508b3bf271fd41c430a.zip |
* added inttostr module from gnulib, used in src/mkid.c to print an
off_t portably using offtostr()
Diffstat (limited to 'lib/inttostr.h')
-rw-r--r-- | lib/inttostr.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/inttostr.h b/lib/inttostr.h new file mode 100644 index 0000000..55f80ee --- /dev/null +++ b/lib/inttostr.h @@ -0,0 +1,34 @@ +/* inttostr.h -- convert integers to printable strings + + Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Paul Eggert */ + +#if HAVE_INTTYPES_H +# include <inttypes.h> +#endif +#if HAVE_STDINT_H +# include <stdint.h> +#endif + +#include <sys/types.h> + +#include "intprops.h" + +char *offtostr (off_t, char *); +char *imaxtostr (intmax_t, char *); +char *umaxtostr (uintmax_t, char *); |