fwrite.c.svn-base

来自「SImple Microkernel Distributed Operating」· SVN-BASE 代码 · 共 22 行

SVN-BASE
22
字号
#include <stdio.h>size_t fwrite(const void *ptr, size_t size, size_t nelem, FILE *stream){	const unsigned char *cp = ptr;	size_t s;	size_t ndone = 0;		if(size)		while( ndone < nelem ) {			s = size;			do {				if(putc((int *)cp, stream) == EOF)					return ndone;				cp++;			}			while(--s);			ndone++;		}	return ndone;}

⌨️ 快捷键说明

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