From 95f99113a6d22b9d8c9acb7c4a6e68071d47947c Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 7 Sep 2000 22:57:51 +0000 Subject: [PATCH] Reformatting. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/Install/packinst/packinst.c | 256 +++++++++++++++--------------- 1 file changed, 128 insertions(+), 128 deletions(-) diff --git a/utils/Install/packinst/packinst.c b/utils/Install/packinst/packinst.c index 27dcc9edf1..f6685477aa 100644 --- a/utils/Install/packinst/packinst.c +++ b/utils/Install/packinst/packinst.c @@ -43,148 +43,148 @@ int include_unpack(char *aname); void append_file(char *filename) { - FILE *appendfile; - int amnt; - char buffer[512]; + FILE *appendfile; + int amnt; + char buffer[512]; - if((appendfile = fopen(filename, "rb"))==NULL) - { - printf("Error opening %s for reading!\n", filename); - exit(3); - } - while(!feof(appendfile)) - { - amnt = fread(buffer, 1, 512, appendfile); - fwrite(buffer, 1, amnt, installfile); - } - fclose(appendfile); + if((appendfile = fopen(filename, "rb"))==NULL) + { + printf("Error opening %s for reading!\n", filename); + exit(3); + } + while(!feof(appendfile)) + { + amnt = fread(buffer, 1, 512, appendfile); + fwrite(buffer, 1, amnt, installfile); + } + fclose(appendfile); } void getline(FILE *f, char *entry, char *entrydata) { -char in[4096]; -int z; + char in[4096]; + int z; - memset(in, 0, 4096); - fgets(in, 4095, f); + memset(in, 0, 4096); + fgets(in, 4095, f); - if(in[strlen(in)-1] == '\n') - in[strlen(in)-1] = 0; + if(in[strlen(in)-1] == '\n') + in[strlen(in)-1] = 0; - if(in[0] != '#') - { - for(z=0;z