Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/parseargs.cfa

    r53e4562 r7f389a5c  
    1212
    1313        extern int fprintf ( FILE * stream, const char * format, ... );
    14 
    15         extern          long long int strtoll (const char* str, char** endptr, int base);
    16         extern unsigned long long int strtoull(const char* str, char** endptr, int base);
     14        extern long long int strtoll (const char* str, char** endptr, int base);
    1715}
    1816
     
    9694
    9795        USAGE:
    98         fprintf(out, "Usage:\n  %s %s\n", argv[0], usage);
     96        fprintf(out, "%s\n", usage);
    9997
    10098        for(i; opt_count) {
     
    134132}
    135133
    136 bool parse(const char * arg, unsigned & value) {
    137         char * end;
    138         unsigned long long int r = strtoull(arg, &end, 10);
    139         if(*end != '\0') return false;
    140 #warning not checking max
    141 
    142         value = r;
    143         return true;
    144 }
    145 
    146 bool parse(const char * arg, size_t & value) {
    147         char * end;
    148         unsigned long long int r = strtoull(arg, &end, 10);
    149         if(*end != '\0') return false;
    150 #warning not checking max
    151 
    152         value = r;
    153         return true;
    154 }
    155 
    156134bool parse(const char * arg, int & value) {
    157135        char * end;
Note: See TracChangeset for help on using the changeset viewer.