aboutsummaryrefslogtreecommitdiff
path: root/src/SStringIO.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/SStringIO.h')
-rw-r--r--src/SStringIO.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/SStringIO.h b/src/SStringIO.h
new file mode 100644
index 0000000..0d79c28
--- /dev/null
+++ b/src/SStringIO.h
@@ -0,0 +1,39 @@
+ /*@@
+ @file SStringIO.h
+ @date 02.04.2004
+ @author Steve White
+ @desc Extensions to Strings module involvint file IO
+ @enddesc
+ @version $Header$
+ @@*/
+#ifndef _SSTRINGIO_H
+#define _SSTRINGIO_H
+
+#include "SString.h"
+#include <stdio.h>
+
+ /* File utilities */
+String * StringReadToDelimiter( String *str, FILE * file, char delim );
+String * StringReadToEndOfLine( String *str, FILE * is );
+String * StringReadLine( String *str, FILE * is );
+
+void StringPrintToFile( const String *str, FILE * is );
+void StringFormatPrintToFile( const String *str, const char *format,
+ FILE * is );
+
+#ifdef STRING_NAMESPACE
+
+#define ReadToDelimiter( a, f, d ) \
+ StringReadToDelimiter( a, f, d )
+#define ReadToEndOfLine( a, f ) \
+ StringReadToEndOfLine( a, f )
+#define ReadLine( a, f ) \
+ StringReadLine( a, f )
+#define PrintToFile( a, f ) \
+ StringPrintToFile( a, f )
+#define FormatPrintToFile( a, s, f ) \
+ StringFormatPrintToFile( a, s, f )
+
+#endif
+
+#endif