diff options
Diffstat (limited to 'src/include/cctk_Misc.h')
-rw-r--r-- | src/include/cctk_Misc.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/include/cctk_Misc.h b/src/include/cctk_Misc.h new file mode 100644 index 00000000..fe7ebba5 --- /dev/null +++ b/src/include/cctk_Misc.h @@ -0,0 +1,44 @@ + /*@@ + @header cctk_Misc.h + @date Wed Jan 20 10:39:01 1999 + @author Tom Goodale + @desc + header file for miscellaneous routines. + @enddesc + @version $Id$ + @@*/ + +#ifndef _MISC_H_ +#define _MISC_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +int Util_SplitString(char **before, char **after, const char *string, const char *sep); + +int CCTK_Equals(const char *string1, const char *string2); + +char *Util_NullTerminateString(const char *, unsigned int); + +int Util_InList(const char *string1, int n_elements, ...); + +int Util_IntInRange(int inval, const char *range); +int Util_DoubleInRange(double inval, const char *range); +int Util_IntInRangeList(int inval, int n_elements, ...); +int Util_DoubleInRangeList(double inval, int n_elements, ...); + +int CCTK_SetDoubleInRangeList(CCTK_REAL *data, const char *value, + int n_elements, ...); +int CCTK_SetIntInRangeList(CCTK_INT *data, const char *value, + int n_elements, ...); +int CCTK_SetKeywordInRangeList(char **data, const char *value, + int n_elements, ...); +int CCTK_SetString(char **data, const char *value); +int CCTK_SetLogical(CCTK_INT *data, const char *value); + +#ifdef __cplusplus + } +#endif + +#endif |