void Matrix_writeToHeaderlessSpreadsheetFile (Matrix me, MelderFile file) { try { autofile f = Melder_fopen (file, "w"); for (long i = 1; i <= my ny; i ++) { for (long j = 1; j <= my nx; j ++) { if (j > 1) fprintf (f, "\t"); fprintf (f, "%s", Melder8_single (my z [i] [j])); } fprintf (f, "\n"); } f.close (file); } catch (MelderError) { Melder_throw (me, U": not saved as tab-separated file ", file); } }
const char32 * Melder_single (double value) { const char *p = Melder8_single (value); CONVERT_BUFFER_TO_CHAR32 }