aboutsummaryrefslogtreecommitdiff
path: root/src/SStringIO.h
blob: 0d79c2892bba5fb4e62d8fbf5f62ff209b755cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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