}\r
\r
/* Convert a string to a number. */\r
-int str_number(const TCHAR *string, unsigned long *number) {\r
+int str_number(const TCHAR *string, unsigned long *number, TCHAR **bogus) {\r
if (! string) return 1;\r
\r
- TCHAR *bogus;\r
- *number = _tcstoul(string, &bogus, 0);\r
- if (*bogus) return 2;\r
+ *number = _tcstoul(string, bogus, 0);\r
+ if (**bogus) return 2;\r
\r
return 0;\r
}\r
\r
+int str_number(const TCHAR *string, unsigned long *number) {\r
+ TCHAR *bogus;\r
+ return str_number(string, number, &bogus);\r
+}\r
+\r
/* Remove basename of a path. */\r
void strip_basename(TCHAR *buffer) {\r
size_t len = _tcslen(buffer);\r
\r
int str_equiv(const TCHAR *, const TCHAR *);\r
void strip_basename(TCHAR *);\r
+int str_number(const TCHAR *, unsigned long *, TCHAR **);\r
int str_number(const TCHAR *, unsigned long *);\r
int usage(int);\r
\r