Changeset 524627e for libcfa/src/stdlib.hfa
- Timestamp:
- Nov 30, 2019, 11:04:08 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 27f5f71
- Parents:
- 397c101a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/stdlib.hfa
r397c101a r524627e 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Nov 2 2 15:13:14201913 // Update Count : 39912 // Last Modified On : Fri Nov 29 23:08:02 2019 13 // Update Count : 400 14 14 // 15 15 … … 210 210 211 211 static inline { 212 int ato( const char * sptr ) { return (int)strtol( sptr, 0 , 10 ); }213 unsigned int ato( const char * sptr ) { return (unsigned int)strtoul( sptr, 0 , 10 ); }214 long int ato( const char * sptr ) { return strtol( sptr, 0 , 10 ); }215 unsigned long int ato( const char * sptr ) { return strtoul( sptr, 0 , 10 ); }216 long long int ato( const char * sptr ) { return strtoll( sptr, 0 , 10 ); }217 unsigned long long int ato( const char * sptr ) { return strtoull( sptr, 0 , 10 ); }218 219 float ato( const char * sptr ) { return strtof( sptr, 0 ); }220 double ato( const char * sptr ) { return strtod( sptr, 0 ); }221 long double ato( const char * sptr ) { return strtold( sptr, 0 ); }222 223 float _Complex ato( const char * sptr ) { return strto( sptr, NULL); }224 double _Complex ato( const char * sptr ) { return strto( sptr, NULL); }225 long double _Complex ato( const char * sptr ) { return strto( sptr, NULL); }212 int ato( const char * sptr ) { return (int)strtol( sptr, 0p, 10 ); } 213 unsigned int ato( const char * sptr ) { return (unsigned int)strtoul( sptr, 0p, 10 ); } 214 long int ato( const char * sptr ) { return strtol( sptr, 0p, 10 ); } 215 unsigned long int ato( const char * sptr ) { return strtoul( sptr, 0p, 10 ); } 216 long long int ato( const char * sptr ) { return strtoll( sptr, 0p, 10 ); } 217 unsigned long long int ato( const char * sptr ) { return strtoull( sptr, 0p, 10 ); } 218 219 float ato( const char * sptr ) { return strtof( sptr, 0p ); } 220 double ato( const char * sptr ) { return strtod( sptr, 0p ); } 221 long double ato( const char * sptr ) { return strtold( sptr, 0p ); } 222 223 float _Complex ato( const char * sptr ) { return strto( sptr, 0p ); } 224 double _Complex ato( const char * sptr ) { return strto( sptr, 0p ); } 225 long double _Complex ato( const char * sptr ) { return strto( sptr, 0p ); } 226 226 } // distribution 227 227
Note: See TracChangeset
for help on using the changeset viewer.