27void ode_write (
char const *fn, T *a,
unsigned long n) {
31 FILE *ofile = fopen(fn,
"wb");
33 fwrite(a,
sizeof(T), n, ofile);
void ode_check_write(const char *fn)
check if a file can be written (opened in write mode)
void ode_print_exit(const char *msg)
print a message and exit with failure
void ode_write(char const *fn, T *a, unsigned long n)
write an array to a binary file
std::string ode_int_to_string(long i)
converts an integer into a string