17d375156SJon Dugan /* 2*da9f046fSBruce A. Mah * iperf, Copyright (c) 2014, The Regents of the University of 3*da9f046fSBruce A. Mah * California, through Lawrence Berkeley National Laboratory (subject 4*da9f046fSBruce A. Mah * to receipt of any required approvals from the U.S. Dept. of 5*da9f046fSBruce A. Mah * Energy). All rights reserved. 67d375156SJon Dugan * 7*da9f046fSBruce A. Mah * If you have questions about your rights to use or distribute this 8*da9f046fSBruce A. Mah * software, please contact Berkeley Lab's Technology Transfer 9*da9f046fSBruce A. Mah * Department at [email protected]. 10*da9f046fSBruce A. Mah * 11*da9f046fSBruce A. Mah * NOTICE. This software is owned by the U.S. Department of Energy. 12*da9f046fSBruce A. Mah * As such, the U.S. Government has been granted for itself and others 13*da9f046fSBruce A. Mah * acting on its behalf a paid-up, nonexclusive, irrevocable, 14*da9f046fSBruce A. Mah * worldwide license in the Software to reproduce, prepare derivative 15*da9f046fSBruce A. Mah * works, and perform publicly and display publicly. Beginning five 16*da9f046fSBruce A. Mah * (5) years after the date permission to assert copyright is obtained 17*da9f046fSBruce A. Mah * from the U.S. Department of Energy, and subject to any subsequent 18*da9f046fSBruce A. Mah * five (5) year renewals, the U.S. Government is granted for itself 19*da9f046fSBruce A. Mah * and others acting on its behalf a paid-up, nonexclusive, 20*da9f046fSBruce A. Mah * irrevocable, worldwide license in the Software to reproduce, 21*da9f046fSBruce A. Mah * prepare derivative works, distribute copies to the public, perform 22*da9f046fSBruce A. Mah * publicly and display publicly, and to permit others to do so. 23*da9f046fSBruce A. Mah * 24*da9f046fSBruce A. Mah * This code is distributed under a BSD style license, see the LICENSE 25*da9f046fSBruce A. Mah * file for complete information. 267d375156SJon Dugan */ 27bc495fb9SJon Dugan enum { 2891d5d5e7SBruce A. Mah UNIT_LEN = 32 29bc495fb9SJon Dugan }; 30bc495fb9SJon Dugan 31e9287700SJon Dugan double unit_atof( const char *s ); 32f5062770SBruce A. Mah double unit_atof_rate( const char *s ); 33e9287700SJon Dugan iperf_size_t unit_atoi( const char *s ); 34e9287700SJon Dugan void unit_snprintf( char *s, int inLen, double inNum, char inFormat ); 35