Lines Matching refs:printf
122 printf("#include <stdio.h>\n"); in main()
123 printf("#include \"awk.h\"\n"); in main()
124 printf("#include \"ytab.h\"\n\n"); in main()
142 printf("static char *printname[%d] = {\n", SIZE); in main()
154 printf("\t(char *) \"%s\",\t/* %d */\n", name, tok); in main()
157 printf("};\n\n"); in main()
161 printf("\nCell *(*proctab[%d])(Node **, int) = {\n", SIZE); in main()
164 printf("\tnullproc,\t/* %s */\n", names[i]); in main()
166 printf("\t%s,\t/* %s */\n", table[i], names[i]); in main()
167 printf("};\n\n"); in main()
169 printf("char *tokname(int n)\n"); /* print a tokname() function */ in main()
170 printf("{\n"); in main()
171 printf(" static char buf[100];\n\n"); in main()
172 printf(" if (n < FIRSTTOKEN || n > LASTTOKEN) {\n"); in main()
173 printf(" sprintf(buf, \"token %%d\", n);\n"); in main()
174 printf(" return buf;\n"); in main()
175 printf(" }\n"); in main()
176 printf(" return printname[n-FIRSTTOKEN];\n"); in main()
177 printf("}\n"); in main()