28 for (
int i = 0; i < (int)
sizeof(
ignoreChar); i++) {
43 main(
int argc,
char *argv[])
47 while (fgets(line,
sizeof(line), stdin) != NULL) {
48 char *wtop = NULL, *cp = line;
49 int len = (int)strlen(line);
51 while ((cp - line) < len) {
55 if (*cp ==
'\n' || *cp ==
'\0') {
59 while (*cp !=
' ' && *cp !=
'\n' && *cp !=
'\0') {
63 printf(
"%s 1\n", wtop);
int main(int argc, char *argv[])
Main function.
static void ReplaceChar(char *wp)
Replace Character.
#define LINELEN
Maximum line length.
static char ignoreChar[]
Ignore characters.