nullihdr.c
来自「NIST Handwriting OCR Testbed」· C语言 代码 · 共 49 行
C
49 行
/*# proc: nullihdr - initializes an allocated IHead structure to be empty.# proc:*//************************************************************//* Routine: Nullihdr() *//* Author: Michael D. Garris *//* Date: 5/1/89 *//************************************************************//************************************************************//* Nullihdr() nulls all bytes in a ihead structure. *//************************************************************/#include <ihead.h>void nullihdr(head)IHEAD *head;{ int i; for(i = 0; i < BUFSIZE; i++){ (head->id)[i] = '\0'; (head->parent)[i] = '\0'; } for(i = 0; i < DATELEN; i++) (head->created)[i] = '\0'; for(i = 0; i < SHORT_CHARS; i++){ (head->width)[i] = '\0'; (head->height)[i] = '\0'; (head->depth)[i] = '\0'; (head->density)[i] = '\0'; (head->compress)[i] = '\0'; (head->complen)[i] = '\0'; (head->align)[i] = '\0'; (head->unitsize)[i] = '\0'; (head->pix_offset)[i] = '\0'; (head->whitepix)[i] = '\0'; (head->par_x)[i] = '\0'; (head->par_y)[i] = '\0'; } head->sigbit = '\0'; head->byte_order = '\0'; head->issigned = '\0'; head->rm_cm = '\0'; head->tb_bt = '\0'; head->lr_rl = '\0';}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?