2006-12-07 07:05:10 +03:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main(int ac, char** av)
|
|
|
|
{
|
|
|
|
FILE* fout = fopen(av[1], "w");
|
|
|
|
printf("create %s\n", av[1]);
|
2016-05-16 17:34:04 +03:00
|
|
|
if (!fout) {
|
2006-12-07 07:05:10 +03:00
|
|
|
return -1;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2006-12-30 03:20:56 +03:00
|
|
|
fprintf(fout, "#include <bar.h>\nBAR_EXPORT int bar(){ return 10;}\n");
|
2006-12-07 07:05:10 +03:00
|
|
|
fclose(fout);
|
|
|
|
return 0;
|
|
|
|
}
|