A low Mach, 1D, reacting flow code.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
741B

  1. #ifndef PRINT_DEF
  2. #define PRINT_DEF
  3. #include <string.h> //for strings
  4. #include <stdio.h> //for printf,scanf
  5. #include <stdlib.h> //for atoi, atof
  6. #endif
  7. #ifndef PARSE_DEF
  8. #define PARSE_DEF
  9. #define MAXBUFLEN 200
  10. void getFromString (const char* buf, int* n);
  11. void getFromString (const char* buf, size_t* n);
  12. void getFromString (const char* buf, double* n);
  13. void getFromString (const char* buf, char* n);
  14. int parseString(FILE* input, const char* keyword, const size_t bufLen, char* n);
  15. template<typename T>
  16. int parseNumber(FILE* input, const char* keyword, const size_t bufLen, T* n);
  17. template<typename T>
  18. int parseArray(FILE* input, const char* keyword, const size_t bufLen,
  19. const size_t arrLen, T y[]);
  20. #include "parse.hpp"
  21. #endif