Mercurial > mplayer.hg
annotate gui/util/string.h @ 33740:2c02269701bd
Remove macros guiSetFilename() and guiSetDF() from interface.h.
Rename guiSetFilename() setdup() and guiSetDF() setddup()
and define them in string.c as functions.
Adjust malloc size to necessary size and check pointer returned
by malloc() to prevent segmentation fault.
author | ib |
---|---|
date | Thu, 07 Jul 2011 10:16:22 +0000 |
parents | 71c29e8ec68f |
children | 0d3d8db05a59 |
rev | line source |
---|---|
33048 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * MPlayer is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
19 #ifndef MPLAYER_GUI_STRING_H | |
20 #define MPLAYER_GUI_STRING_H | |
21 | |
33073 | 22 char *decomment(char *in); |
33737 | 23 char *gstrchr(const char *str, int c); |
24 int gstrcmp(const char *a, const char *b); | |
25 char *gstrdup(const char *str); | |
26 int gstrncmp(const char *a, const char *b, int n); | |
33740
2c02269701bd
Remove macros guiSetFilename() and guiSetDF() from interface.h.
ib
parents:
33737
diff
changeset
|
27 void setddup(char **old, const char *dir, const char *name); |
2c02269701bd
Remove macros guiSetFilename() and guiSetDF() from interface.h.
ib
parents:
33737
diff
changeset
|
28 void setdup(char **old, const char *str); |
33052 | 29 char *strlower(char *in); |
33048 | 30 char *strswap(char *in, char from, char to); |
31 char *trim(char *in); | |
32 | |
33 #endif /* MPLAYER_GUI_STRING_H */ |