1 2 3 4 5 6 7 8 9 10
#include <stdio.h> int main(int argc, char *argv[]) { FILE *fp = fopen(argv[1],"w"); fprintf(fp,"int generated() { return 3; }\n"); fclose(fp); return 0; }