along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-/* Jim Meyering (meyering@na-net.ornl.gov) */
+/* Written by Jim Meyering. */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
+#if HAVE_CONFIG_H
+# include <config.h>
#endif
-#ifdef STDC_HEADERS
-#include <stdlib.h>
+#if STDC_HEADERS
+# include <stdlib.h>
#endif
-#ifdef HAVE_STRING_H
+#if HAVE_STRING_H
# include <string.h>
#else
# include <strings.h>
return LONGINT_INVALID_SUFFIX_CHAR;
}
- if (**p != '\0' && strchr (valid_suffixes, **p))
+ if (**p != '\0')
{
+ if (!strchr (valid_suffixes, **p))
+ return LONGINT_INVALID_SUFFIX_CHAR;
+
switch (**p)
{
case 'b':
#ifdef TESTING_XSTRTO
-#include <stdio.h>
-#include "error.h"
+# include <stdio.h>
+# include "error.h"
char *program_name;
}
exit (0);
}
+
#endif /* TESTING_XSTRTO */