b6ce735c04
- Add strsuftoull(), which parses a number into a u_longlong_t, with multiplication support, and support for 'g' (GB) and 't' (TB) suffices. If an error occurs, print to stderr and exit. Based on get_blk() from args.c and strsufto*() (in other programs) - Add strsuftoullx(), which acts as per strsuftoull() but returns the error in the supplied buffer instead (if the returned buffer != "", an error occurred) - Replace get_bsz() use with strsuftoull() - Remove (now) unnecessary argument validation - Remove unused {f,p,s,t}_stats fields in struct IO
8 lines
262 B
C
8 lines
262 B
C
/* $NetBSD: strsuftoull.h,v 1.1 2001/11/25 10:50:06 lukem Exp $ */
|
|
|
|
u_longlong_t strsuftoull(const char *, const char *,
|
|
u_longlong_t, u_longlong_t);
|
|
|
|
u_longlong_t strsuftoullx(const char *, const char *,
|
|
u_longlong_t, u_longlong_t, char *, size_t);
|