foo.cxx 254 Bytes
Newer Older
1 2 3 4 5 6
#include <stdio.h>

int main(int ac, char** av)
{
  FILE* fout = fopen(av[1], "w");
  printf("create %s\n", av[1]);
7
  if (!fout) {
8
    return -1;
9
  }
10
  fprintf(fout, "#include <bar.h>\nBAR_EXPORT int bar(){ return 10;}\n");
11 12 13
  fclose(fout);
  return 0;
}