~ubuntu-branches/ubuntu/karmic/findutils/karmic

« back to all changes in this revision

Viewing changes to gnulib/lib/human.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-02-08 12:31:14 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080208123114-r10wogrqrq6lck12
Tags: 4.2.32-1ubuntu1
* Merge with Debian; remaining changes:
  - debian/locate-cron.daily: Test if called by root (LP: #147911),
    add /var/lib/schroot/mount to PRUNEPATHS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* human.h -- print human readable file size
2
2
 
3
3
   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
   2005, 2006 Free Software Foundation, Inc.
 
4
   2005, 2006, 2007 Free Software Foundation, Inc.
5
5
 
6
 
   This program is free software; you can redistribute it and/or modify
 
6
   This program is free software: you can redistribute it and/or modify
7
7
   it under the terms of the GNU General Public License as published by
8
 
   the Free Software Foundation; either version 2, or (at your option)
9
 
   any later version.
 
8
   the Free Software Foundation; either version 3 of the License, or
 
9
   (at your option) any later version.
10
10
 
11
11
   This program is distributed in the hope that it will be useful,
12
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
14
   GNU General Public License for more details.
15
15
 
16
16
   You should have received a copy of the GNU General Public License
17
 
   along with this program; if not, write to the Free Software Foundation,
18
 
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
17
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
18
 
20
19
/* Written by Paul Eggert and Larry McVoy.  */
21
20
 
27
26
# include <stdint.h>
28
27
# include <unistd.h>
29
28
 
 
29
# include <xstrtol.h>
 
30
 
30
31
/* A conservative bound on the maximum length of a human-readable string.
31
32
   The output can be the square of the largest uintmax_t, so double
32
33
   its size before converting to a bound.
78
79
 
79
80
char *human_readable (uintmax_t, char *, int, uintmax_t, uintmax_t);
80
81
 
81
 
int human_options (char const *, bool, uintmax_t *);
 
82
enum strtol_error human_options (char const *, int *, uintmax_t *);
82
83
 
83
84
#endif /* HUMAN_H_ */