~fuzzgun/fin/trunk

« back to all changes in this revision

Viewing changes to src/import.c

  • Committer: Bob Mottram
  • Date: 2012-10-07 19:54:54 UTC
  • Revision ID: fuzzgun@gmail.com-20121007195454-xv6xvfye16d442ib
tidying

Show diffs side-by-side

added added

removed removed

Lines of Context:
675
675
 
676
676
        name[0]=0;
677
677
        printf("%s",get_text_from_identifier(GNUCASH_ACCOUNT_NAME));
678
 
        gets(name);
 
678
        if (fgets(name, STRING_BLOCK, stdin)==0) return;
679
679
 
680
680
        if (strlen(name)==0) return;
681
681
 
715
715
        sprintf(extracted_filename,"%s/import.xml",gnucash_directory);
716
716
        if (file_exists(extracted_filename) != 0) {
717
717
                sprintf(line,"rm %s",extracted_filename);
718
 
                system(line);
 
718
                if (system(line)!=0) {
 
719
                        
 
720
                }
719
721
        }
720
722
        else {
721
723
                /* create a directory to extract data */
722
724
                if (directory_exists(gnucash_directory) == 0) {
723
725
                        sprintf(line,"mkdir %s",gnucash_directory);
724
 
                        system(line);
 
726
                        if (system(line)!=0) {
 
727
                        }
725
728
                }
726
729
        }
727
730