/[public]/psiconv/trunk/program/extra/empty.c
ViewVC logotype

Diff of /psiconv/trunk/program/extra/empty.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 168 Revision 351
1/* 1/*
2 empty.c - Part of psiconv, a PSION 5 file formats converter 2 empty.c - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> 3 Copyright (c) 1999-2014 Frodo Looijaard <frodo@frodo.looijaard.name>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
47 type = psiconv_word_file; 47 type = psiconv_word_file;
48 else { 48 else {
49 help(); 49 help();
50 } 50 }
51 51
52 if (!(config = psiconv_config_read(NULL))) { 52 config = psiconv_config_default();
53 fprintf(stderr,"Can't get config\n"); 53 psiconv_config_read(NULL,&config);
54 exit(1);
55 }
56 psionfile = psiconv_empty_file(type); 54 psionfile = psiconv_empty_file(type);
57 55
58 if (psiconv_write(config,&buf,psionfile)) { 56 if (psiconv_write(config,&buf,psionfile)) {
59 fprintf(stderr,"Generate error\n"); 57 fprintf(stderr,"Generate error\n");
60 exit(1); 58 exit(1);

Legend:
Removed from v.168  
changed lines
  Added in v.351

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26