** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: imagefile.cpp,v 1.12 2000/09/07 05:01:28 kevin Exp $
+** $Id: imagefile.cpp,v 1.13 2000/11/22 06:43:21 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
}
for (int ir = 0; ir < nycell; ir++) {
for (int ic = 0; ic < nx * nxcell; ic++)
- fprintf(fp, "%c ", rowp[ic]);
+ fprintf(fp, "%c", rowp[ic]);
}
}
ImageFileArray v = getArray();
unsigned char rowp [nx * nxcell];
- if (rowp == NULL)
- return;
if ((fp = fopen (outfile, "wb")) == NULL)
return;