📄 bgetd.c
字号:
#include <u.h>#include <libc.h>#include <bio.h>struct bgetd{ Biobufhdr* b; int eof;};static intBgetdf(void *vp){ int c; struct bgetd *bg = vp; c = Bgetc(bg->b); if(c == Beof) bg->eof = 1; return c;}intBgetd(Biobufhdr *bp, double *dp){ double d; struct bgetd b; b.b = bp; b.eof = 0; d = charstod(Bgetdf, &b); if(b.eof) return -1; Bungetc(bp); *dp = d; return 1;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -