home *** CD-ROM | disk | FTP | other *** search
- /* Test file to test the optimser */
-
- #include <stdio.h>
-
- #define ISWHITE(c) ((c) == '\t' || (c) == ' ' || (c) == '\n')
-
- fun1(s)
- char *s;
- {/* test the while loop */
- static char label[20];
- register int i;
-
- printf("Enter loop |%s|\n",s);
- i = 0;
- while(*s && !ISWHITE(*s))
- label[i++] = *s++;
- label[i] = '\0';
- printf("leave loop |%s| |%s| %d\n",s,label,i);
- }
-
- main(argc,argv)
- int argc;
- char *argv;
- {
- fun1("L3: foo\n");
- }
-