?? input.c
字號:
/**********Copyright 1990 Regents of the University of California. All rights reserved.Author: 1988 Jeffrey M. Hsu$Id: input.c,v 1.3 2005/05/30 20:28:44 sjborley Exp $**********//* * Stand-alone input routine. */#include <config.h>#include <ngspice.h>#include <errno.h>#include "fteinput.h"#include "input.h"#include "cpextern.h"#include "../display.h"/* A special 'getc' so that we can deal with ^D properly. There is no way for * stdio to know if we have typed a ^D after some other characters, so * don't use buffering at all */intinchar(FILE *fp){ char c;#ifndef HAS_WINDOWS int i; if (cp_interactive && !cp_nocc) { do { i = read((int) fileno(fp), &c, 1); } while (i == -1 && errno == EINTR); if (i == 0 || c == '\004') return (EOF); else if (i == -1) { perror("read"); return (EOF); } else return ((int) c); } else#endif c = getc(fp); return ((int) c);}int input(FILE *fp){ REQUEST request; RESPONSE response; request.option = char_option; request.fp = fp; Input(&request, &response); return(response.reply.ch);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -