Mercurial > mplayer.hg
diff gui/util/string.h @ 34560:abcf26dcec6b
Add fgetstr() to read from files without end-of-line characters.
Use it where fgets'ed lines are cleared of EOLs.
Remove gfgets() and replace these calls by fgetstr().
author | ib |
---|---|
date | Fri, 03 Feb 2012 13:38:42 +0000 |
parents | d52b0ad317d5 |
children | ee78c9c66508 |
line wrap: on
line diff
--- a/gui/util/string.h Thu Feb 02 18:26:17 2012 +0000 +++ b/gui/util/string.h Fri Feb 03 13:38:42 2012 +0000 @@ -19,7 +19,10 @@ #ifndef MPLAYER_GUI_STRING_H #define MPLAYER_GUI_STRING_H +#include <stdio.h> + char *decomment(char *in); +char *fgetstr(char *str, int size, FILE *file); int gstrcasecmp(const char *a, const char *b); char *gstrchr(const char *str, int c); int gstrcmp(const char *a, const char *b);