| 318 | } |
| 319 | |
| 320 | int mm_write_banner(FILE *f, MM_typecode matcode) { |
| 321 | char *str = mm_typecode_to_str(matcode); |
| 322 | int ret_code; |
| 323 | |
| 324 | ret_code = fprintf(f, "%s %s\n", MatrixMarketBanner, str); |
| 325 | free(str); |
| 326 | if (ret_code != 2) |
| 327 | return MM_COULD_NOT_WRITE_FILE; |
| 328 | else |
| 329 | return 0; |
| 330 | } |
| 331 | |
| 332 | int mm_write_mtx_crd(char fname[], int M, int N, int nz, int I[], int J[], |
| 333 | double val[], MM_typecode matcode) { |
nothing calls this directly
no test coverage detected