Added a test for MUIA_Listview_SelectChange.
[AROS.git] / tools / genmodule / writeend.c
blob41bf02d820471a8e0225c4a23d0e9b25e61cae8d
1 /*
2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
4 Desc: function to write modulename_end.c. Part of genmodule.
5 */
6 #include "genmodule.h"
8 void writeend(struct config *cfg)
10 FILE *out;
11 char line[256];
13 snprintf(line, 255, "%s/%s_end.c", cfg->gendir, cfg->modulename);
14 out = fopen(line, "w");
15 if (out==NULL)
17 fprintf(stderr, "Could not write %s\n", line);
18 exit(20);
20 fprintf(out,
21 "#include \"%s_libdefs.h\"\n"
22 "int GM_UNIQUENAME(End)(void) {return 0;}\n",
23 cfg->modulename
25 fclose(out);