Index: /trunk/psLib/src/image/psImageIO.c
===================================================================
--- /trunk/psLib/src/image/psImageIO.c	(revision 1240)
+++ /trunk/psLib/src/image/psImageIO.c	(revision 1241)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-23 23:00:15 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-07-19 22:01:19 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -203,6 +203,6 @@
 
 
-int psImageWriteSection(psImage* input, int col0,int row0,int z,
-                        char* extname, int extnum, char* filename)
+bool psImageWriteSection(psImage* input, int col0,int row0,int z,
+                         char* extname, int extnum, char* filename)
 {
     int         numCols = 0;
@@ -226,5 +226,5 @@
         psError(__func__, "Can not write %s.  Input psImage is NULL.",
                 filename);
-        return 1;
+        return false;
     }
 
@@ -271,5 +271,5 @@
         psError(__func__, "psImage datatype (%d) not supported.  File %s not written.",
                 input->type.type,filename);
-        return 1;
+        return false;
     }
 
@@ -281,5 +281,5 @@
             psError(__func__,"Could not open file '%s'. FITS error:%s",
                     filename, fitsErr);
-            return 2;
+            return false;
         }
 
@@ -292,5 +292,5 @@
                 psError(__func__,"Could not index to '%s' HDU for file %s. (%s)",
                         extname, filename, fitsErr);
-                return 3;
+                return false;
             }
         } else {
@@ -302,5 +302,5 @@
                 psError(__func__,"extnum (%d) must not exceed number of HDUs (%d) by more than one.",
                         extnum, numHDUs);
-                return 3;
+                return false;
             } else if (numHDUs == extnum) {
                 createNewHDU = true;
@@ -311,5 +311,5 @@
                 psError(__func__,"Could not index to HDU #%d for file %s. (%s)",
                         extnum, filename, fitsErr);
-                return 3;
+                return false;
             }
         }
@@ -322,5 +322,5 @@
             psError(__func__,"Could not create file '%s'. (%s)",
                     filename, fitsErr);
-            return 5;
+            return false;
         }
         createNewHDU = true;
@@ -338,5 +338,5 @@
             psError(__func__,"Could not create image HDU in FITS file '%s'. %s",
                     filename, fitsErr);
-            return 5;
+            return false;
         }
 
@@ -354,5 +354,5 @@
                 psError(__func__,"Could not create EXTNAME keyword in FITS file '%s'. (%s)",
                         filename, fitsErr);
-                return 5;
+                return false;
             }
         }
@@ -373,5 +373,5 @@
         psError(__func__, "Could not write image data to '%s'. (%s)",
                 filename, fitsErr);
-        return 6;
+        return false;
     }
 
@@ -379,4 +379,4 @@
     (void)fits_close_file(fptr, &status);
 
-    return 0;
+    return true;
 }
Index: /trunk/psLib/src/image/psImageIO.h
===================================================================
--- /trunk/psLib/src/image/psImageIO.h	(revision 1240)
+++ /trunk/psLib/src/image/psImageIO.h	(revision 1241)
@@ -9,6 +9,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-10 01:58:06 $
+ *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-07-19 22:01:19 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -16,4 +16,6 @@
 # ifndef PS_IMAGEIO_H
 # define PS_IMAGEIO_H
+
+#include <stdbool.h>
 
 #include "psImage.h"
@@ -54,7 +56,7 @@
 /** Read an image or subimage from a FITS file specified by a filename.
  *
- *  return psImage*         NULL if an error, otherwise same as input psImage
+ *  return bool         TRUE is successful, otherwise FALSE.
  */
-int psImageWriteSection(
+bool psImageWriteSection(
     psImage* input,
     /**< the psImage to write */
