/* bonumain.c bonus main file for the bonus assignment ISYS290 - 01 */ #define MAXLEN 256 #include #include int process(char *dest, char *source); /* user-supplied function */ void pause(void); main(void) { char input[MAXLEN] = "this.is. A. TEST. WHOOPEE."; /*"to be or not to be. that is the QUESTION..s"; /*"to be or not to be.. that is the QUESTION."; /*"to be or not to be. that is the QUESTION";*/ char output[MAXLEN] = "QUESTION"; int err = 0; /*--- main processing */ /*gets(input); /* get first input */ puts(output); puts(input); err = process(output, input); printf("\n%d\n", err); puts(output); puts(input); pause(); return 0; } void pause(void) { int c; printf("\nPress enter to continue...\n"); while ((c = getchar()) != '\n') printf("%c", c); }