⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 read_r.c

📁 FAT16 Filesystem on Philips LPC2000 series processors
💻 C
字号:
#include <reent.h>#include <errno.h>#include <devices.h>#include <sysdefs.h>#include <iface.h>_ssize_t _read_r ( struct _reent *ptr, int fd, _PTR buf, size_t cnt){#ifdef HAS_MMCint	idx;		// zero read always returns 0.	if (cnt == 0) return cnt;		// look thru device table for this device.	if ((idx = find_device (ptr, DEVICE_TYPE(fd))) == -1) return -1;		// call function if defined.	if (device_table_list [idx].item->read) {		return device_table_list [idx].item->read(ptr, fd, buf, cnt);	}#endif	ptr->_errno = EBADF;	return -1;}

⌨️ 快捷键说明

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