Strona działa najlepiej z włączonym JavaScript.
Strona główna
Pomoc
Zaloguj się
cacalabs
/
toilet
kopia lustrzana
https://github.com/cacalabs/toilet.git
Obserwuj
1
Polub
0
Forkuj
0
Kod
Zgłoszenia
0
Wydania
0
Wiki
Aktywność
Przeglądaj źródła
* Add feof() to the list of I/O functions.
pull/1/head
Sam Hocevar
sam
18 lat temu
rodzic
e21d948a17
commit
7b76d57ab9
3 zmienionych plików
z
7 dodań
i
1 usunięć
Widok podzielony
Opcje porównania
Pokaż statystyki
Ściągnij plik aktualizacji
Ściągnij plik porównania
+1
-1
src/figlet.c
+5
-0
src/io.c
+1
-0
src/io.h
+ 1
- 1
src/figlet.c
Wyświetl plik
@@ -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
Wyświetl plik
@@ -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
Wyświetl plik
@@ -22,5 +22,6 @@ TOIFILE;
TOIFILE *toiopen(const char *, const char *);
int toiclose(TOIFILE *);
int toieof(TOIFILE *);
char *toigets(char *, int, TOIFILE *);
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz