Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
264 B

#include "scan.h"
unsigned int scan_longlong(const char* src,signed long long* dest) {
unsigned int i,o;
unsigned long long l;
char c=src[0];
o=c=='-' || c=='+';
if ((i=scan_ulonglong(src+o,&l))) {
*dest=c=='-'?-l:l;
return i+o;
} return 0;
}