This website works better with JavaScript.
首頁
說明
登入
cacalabs
/
toilet
镜像来自
https://github.com/cacalabs/toilet.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
* Add feof() to the list of I/O functions.
pull/1/head
Sam Hocevar
sam
18 年之前
父節點
e21d948a17
當前提交
7b76d57ab9
共有
3 個文件被更改
,包括
7 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/figlet.c
+5
-0
src/io.c
+1
-0
src/io.h
+ 1
- 1
src/figlet.c
查看文件
@@ -168,7 +168,7 @@ static int open_font(context_t *cx)
cx->glyphs = 0;
cx->lookup = NULL;
for(i = 0, size = 0; !
f
eof(f); cx->glyphs++)
for(i = 0, size = 0; !
toi
eof(f); cx->glyphs++)
{
if((cx->glyphs % 2048) == 0)
cx->lookup = realloc(cx->lookup,
+ 5
- 0
src/io.c
查看文件
@@ -43,6 +43,11 @@ int toiclose(TOIFILE *toif)
return fclose(f);
}
int toieof(TOIFILE *toif)
{
return feof(toif->f);
}
char *toigets(char *s, int size, TOIFILE *toif)
{
return fgets(s, size, toif->f);
+ 1
- 0
src/io.h
查看文件
@@ -22,5 +22,6 @@ TOIFILE;
TOIFILE *toiopen(const char *, const char *);
int toiclose(TOIFILE *);
int toieof(TOIFILE *);
char *toigets(char *, int, TOIFILE *);
Write
Preview
Loading…
取消
儲存