VIP: Volume Image Processing


readwrite.h
Go to the documentation of this file.
1#ifndef NDEF_PARAM
2#define NDEF_PARAM 0
4#endif
5
6#include <stdio.h>
7#include <stdlib.h>
8
9/* functions reading command line arguments */
10
11int ReadInt ( int *res, FILE *stream);
12int ReadDouble ( double *res, FILE *stream);
13int ReadString ( char *res, FILE *stream);
14
15void Write (char *msg);
16void WriteInt (int n);
17void WriteDouble (double x);
18
19void NewLine ();
20
21int fWrite (char *msg, FILE *stream);
22int fWriteInt (int n, FILE *stream);
23int fWriteDouble (double x, FILE *stream);
24
25/* functions getting args either in argv or interactively */
26
27void GetInt (int *res, char *name, int argc, char *argv[], int pos);
28void GetDouble (double *res, char *name, int argc, char *argv[], int pos);
29void GetString (char *res, char *name, int argc, char *argv[], int pos);
30
31
int fWriteDouble(double x, FILE *stream)
int fWrite(char *msg, FILE *stream)
void GetDouble(double *res, char *name, int argc, char *argv[], int pos)
void WriteInt(int n)
void GetString(char *res, char *name, int argc, char *argv[], int pos)
void NewLine()
void GetInt(int *res, char *name, int argc, char *argv[], int pos)
int ReadDouble(double *res, FILE *stream)
int fWriteInt(int n, FILE *stream)
int ReadString(char *res, FILE *stream)
void WriteDouble(double x)
void Write(char *msg)
int ReadInt(int *res, FILE *stream)