{
}
+/*!
+Extract a column containing a long long int from \a Line.
+
+The extracted value is stored in \a Value.
+
+The pointer to the next byte just after the number is returned
+by the function.
+*/
+static char *Common_GetLongLongInt(char *Line,long long int *Value)
+{
+ *Value=0LL;
+ if (*Line=='-') {
+ ++Line;
+ } else {
+ while (isdigit(*Line)) *Value=*Value*10+(*Line++-'0');
+ }
+ return(Line);
+}
+
/*!
Read one entry from a standard squid log format.
// get the number of transfered bytes.
Begin=++Line;
- Entry->DataSize=0LL;
- while (isdigit(*Line)) Entry->DataSize=Entry->DataSize*10+(*Line++-'0');
+ Line=Common_GetLongLongInt(Line,&Entry->DataSize);
// some log contains more columns
if ((*Line && *Line!=' ') || Begin==Line) return(RLRC_Unknown);