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

📄 readline.h

📁 eC++编译器源码
💻 H
字号:
//This module reads strings from a file a line at a time
#pragma ReadLine
#include <stdio.h>

typedef struct {
  FILE *file;
  char buffer[512];
  unsigned int max, pointer;
} Lines;

void Open(Lines &line, FILE *file);  //an open file, if file==NULL, stdin is assumed

int Read(Lines &line, char &output[]); //-1 on eof; otherwise count of chars in output

⌨️ 快捷键说明

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