Show
Ignore:
Timestamp:
04/15/08 10:29:48 (6 months ago)
Author:
karpet
Message:

use our string_to_int instead of strtol() directly

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/swish_isw.c

    r2105 r2129  
    3434#include <ctype.h> 
    3535#include <locale.h> 
     36 
     37#include "libswish3.h" 
    3638 
    3739void report( 
     
    7678            err(1, "arg %s is not a positive integer\n", argv[i]); 
    7779 
    78         n = (int)strtol(argv[i], (char **)NULL, 10); 
     80        n = swish_string_to_int(argv[i]); 
    7981 
    8082        report(curlocale, n);