이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
도움말
로그인
cacalabs
/
toilet
의 미러
https://github.com/cacalabs/toilet.git
보기
1
좋아요
0
포크
0
코드
이슈
0
릴리즈
0
위키
활동
소스 검색
* 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 *);
쓰기
미리보기
불러오는 중...
취소
저장