Wrapper function around _tcstoul().
return 1;\r
}\r
\r
+/* Convert a string to a number. */\r
+int str_number(const TCHAR *string, unsigned long *number) {\r
+ if (! string) return 1;\r
+\r
+ TCHAR *bogus;\r
+ *number = _tcstoul(string, &bogus, 0);\r
+ if (*bogus) return 2;\r
+\r
+ return 0;\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 *);\r
int usage(int);\r
\r
#define NSSM _T("nssm")\r