2011-04-20 20:33:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2009-2011, The Regents of the University of California,
|
|
|
|
* through Lawrence Berkeley National Laboratory (subject to receipt of any
|
|
|
|
* required approvals from the U.S. Dept. of Energy). All rights reserved.
|
|
|
|
*
|
|
|
|
* This code is distributed under a BSD style license, see the LICENSE file
|
|
|
|
* for complete information.
|
|
|
|
*/
|
|
|
|
|
2009-02-24 09:43:27 +00:00
|
|
|
enum {
|
|
|
|
UNIT_LEN = 11
|
|
|
|
};
|
|
|
|
|
2009-02-24 08:05:14 +00:00
|
|
|
double unit_atof( const char *s );
|
|
|
|
iperf_size_t unit_atoi( const char *s );
|
|
|
|
void unit_snprintf( char *s, int inLen, double inNum, char inFormat );
|