H2Lib  3.0
parameters.h
Go to the documentation of this file.
1 
2 /* ------------------------------------------------------------
3  This is the file "parameters.h" of the H2Lib package.
4  All rights reserved, Steffen Boerm 2009
5  ------------------------------------------------------------ */
6 
11 #include "settings.h"
12 
13 #ifndef PARAMETERS_H
14 #define PARAMETERS_H
15 
32 HEADER_PREFIX int
33 askforint(const char *question, const char *envname, int deflt);
34 
42 HEADER_PREFIX char
43 askforchar(const char *question, const char *envname, const char *allowed, char deflt);
44 
52 askforreal(const char *question, const char *envname, real deflt);
53 
62 HEADER_PREFIX char *
63 askforstring(const char *question, const char *envname,
64  const char *deflt,
65  char *buffer, uint bufsize);
66 
69 #endif
real askforreal(const char *question, const char *envname, real deflt)
Ask for a real number.
int askforint(const char *question, const char *envname, int deflt)
Ask for an integer.
char * askforstring(const char *question, const char *envname, const char *deflt, char *buffer, uint bufsize)
Ask for a string.
unsigned uint
Unsigned integer type.
Definition: settings.h:70
#define HEADER_PREFIX
Prefix for function declarations.
Definition: settings.h:43
double real
real floating point type.
Definition: settings.h:97
char askforchar(const char *question, const char *envname, const char *allowed, char deflt)
Ask for a character.