writemfs.c

来自「NIST Handwriting OCR Testbed」· C语言 代码 · 共 23 行

C
23
字号
/*# proc: writemfsfile - takes an mfs structure and writes its contents to the# proc:                specified file.*/#include <stdio.h>#include <mfs.h>void writemfsfile(file,mfsptr)char *file;MFS *mfsptr;{  FILE *mfs = NULL;  int item;  if ((mfs = fopen(file,"wb")) == NULL)     syserr("writemfsfile","fopen",file);  fprintf(mfs,"%d\n",mfsptr->num);  for (item=0;item < mfsptr->num;item++)      fprintf(mfs,"%s\n",mfsptr->values[item]);  fclose(mfs);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?