~ubuntu-branches/ubuntu/raring/boxshade/raring-proposed

« back to all changes in this revision

Viewing changes to bx_misc.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille, David Paleino, Andreas Tille
  • Date: 2011-01-14 08:27:01 UTC
  • Revision ID: james.westby@ubuntu.com-20110114082701-etwd13n9n7nz8h78
Tags: 3.3.1-5
[ David Paleino ]
* Removed myself from Uploaders

[ Andreas Tille ]
* debian/control
  - Standards-Version: 3.9.1 (no changes needed)
  - Debhelper 7
  - Fix spelling of Debian Med in maintainer address
* debian/rules: s/dh_clean -k/dh_prep/
* debian/source/format: 3.0 (quilt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
BOOL fexist(char *fname)
62
62
{
63
 
  BOOL Result;
64
63
  FILE *f;
65
64
 
 
65
  if (NULL == fname) {
 
66
    fprintf(stderr,"fexist: serious programming error, the filename is NULL.\n");
 
67
    exit(-1);
 
68
  }
 
69
 
66
70
  f = fopen(fname, TXT_RD);
67
 
  Result = (f != NULL);
68
 
  if (f != NULL)
 
71
  if (f) {
69
72
    fclose(f);
70
 
  return Result;
 
73
    return TRUE;
 
74
  }
 
75
  else {
 
76
    // leaving it to calling function to interpret errno.
 
77
    return FALSE;
 
78
  }
71
79
}
72
80
 
73
81
int indx(char *mainstring, char *substring)