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

📄 write.c

📁 ULTRACTR的源码
💻 C
字号:
/* write.c -- write bytes to an output device. */extern int  outbyte(char);/* * write -- write bytes to the serial port. Ignore fd, since *          stdout and stderr are the same. Since we have no filesystem, *          open will only return an error. */intwrite (int fd, char* buf, int nbytes)	/*       int fd;       char *buf;       int nbytes;       */{  int i;  for (i = 0; i < nbytes; i++) {    if (*(buf + i) == '\n') {      outbyte ('\r');    }    outbyte (*(buf + i));  }  return (nbytes);}

⌨️ 快捷键说明

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