#include <sys/socket.h>
static int path[5];
static int j, k, scratchloc, pies;
static char inp[BUFSIZ]; /* common input buffer */
#include <sys/socket.h>
static int path[5];
static int j, k, scratchloc, pies;
static char inp[BUFSIZ]; /* common input buffer */
PM(" If a pie hits the superhack, you win. If it hits you, you lose!\n");
(void) fputs("<Press return to continue>", stdout);
PM(" If a pie hits the superhack, you win. If it hits you, you lose!\n");
(void) fputs("<Press return to continue>", stdout);
- j9 = sscanf(inp + isalpha(inp[0]), "%d %d %d %d %d",
+ j9 = sscanf(inp + strcspn(inp, NUMBERS), "%d %d %d %d %d",
&path[0], &path[1], &path[2], &path[3], &path[4]);
&path[0], &path[1], &path[2], &path[3], &path[4]);
- if (sscanf(inp + isalpha(inp[0]), "%d", &scratchloc) < 1)
+ if (sscanf(inp + strcspn(inp, NUMBERS), "%d", &scratchloc) < 1)