Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /libutil/op_fileio.h [715616] .. [3aa2fe] Maximize Restore

  Switch to side-by-side view

--- a/libutil/op_fileio.h
+++ b/libutil/op_fileio.h
@@ -49,6 +49,17 @@
  * zero (u32)-1 is returned else the value read in is returned.
  */
 u32 op_read_int_from_file(char const * filename, int fatal);
+
+/**
+ * op_read_long_from_file - parse an ASCII value from a file into an unsigned long
+ * @param filename  name of file to parse value from
+ * @param fatal  non-zero if any error must be fatal
+ *
+ * Reads an ASCII unsigned long number from the given file. If an error occurs,and
+ * the passed 'fatal' arg is zero, then (unsigned long)-1 is returned; else the
+ * value read in is returned.
+ */
+unsigned long op_read_long_from_file(char const * filename, int fatal);
 
 /**
  * op_close_file - close a file