/*-------------------------------------------------------------------------*/
-int mm_write_banner(FILE * f, MM_typecode matcode)
-{
- char *str = mm_typecode_to_str(matcode);
- int ret_code;
-
- ret_code = fprintf(f, "%s %s\n", MatrixMarketBanner, str);
- free(str);
- if (ret_code != 2)
- return MM_COULD_NOT_WRITE_FILE;
- else
- return 0;
-}
-
char *mm_typecode_to_str(MM_typecode matcode)
{
char buffer[MM_MAX_LINE_LENGTH];
int mm_read_banner(FILE * f, MM_typecode * matcode);
int mm_read_mtx_crd_size(FILE * f, int *M, int *N, int *nz);
-int mm_write_banner(FILE * f, MM_typecode matcode);
-
/********************* MM_typecode query fucntions ***************************/
#define mm_is_matrix(typecode) ((typecode)[0]=='M')