** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: imagefile.cpp,v 1.11 2000/08/25 15:59:13 kevin Exp $
+** $Id: imagefile.cpp,v 1.15 2000/11/22 16:39:59 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
delete pPens;
return (id_X11);
-
+#else
+ return 0;
#endif
}
}
for (int ir = 0; ir < nycell; ir++) {
for (int ic = 0; ic < nx * nxcell; ic++)
- fprintf(fp, "%c ", rowp[ic]);
+ fputc( rowp[ic], fp );
}
}
ImageFileArray v = getArray();
unsigned char rowp [nx * nxcell];
- if (rowp == NULL)
- return;
if ((fp = fopen (outfile, "wb")) == NULL)
return;