Commit 74b273d6 by Zack Weinberg Committed by Zack Weinberg

980707-1.c: Don't use isspace().

	* gcc.c-torture/execute/980707-1.c: Don't use isspace().
	Include stdlib.h, not stdio.h or ctype.h.

From-SVN: r52619
parent a2761d68
2002-04-22 Zack Weinberg <zack@codesourcery.com>
* gcc.c-torture/execute/980707-1.c: Don't use isspace().
Include stdlib.h, not stdio.h or ctype.h.
2002-04-22 Hans-Peter Nilsson <hp@axis.com>
* gcc.dg/20020415-1.c: Expect warning for unsupported -fpic on
......
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
char **
......@@ -10,12 +9,12 @@ buildargv (char *input)
while (1)
{
while (isspace ((unsigned char)*input) && *input != 0)
while (*input == ' ')
input++;
if (*input == 0)
break;
arglist [numargs++] = input;
while (!isspace ((unsigned char)*input) && *input != 0)
while (*input != ' ' && *input != 0)
input++;
if (*input == 0)
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment