You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
420 B

#include <stdio.h>
int main(int argc, char *argv[])
{
if ( argc < 3 )
{
fprintf(stderr, "Usage: %s <file1> <file2>\n", argv[0]);
return 1;
}
FILE *fp = fopen(argv[1],"w");
fprintf(fp,"extern int wrapped_help();\n");
fprintf(fp,"int wrapped() { return wrapped_help(); }\n");
fclose(fp);
fp = fopen(argv[2],"w");
fprintf(fp,"int wrapped_help() { return 5; }\n");
fclose(fp);
return 0;
}