1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
4 Copyright (C) <ARembo@gmail.com> 2011
6 This file is part of the Doom2D:Rembo project.
8 Doom2D:Rembo is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2 as
10 published by the Free Software Foundation.
12 Doom2D:Rembo is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, see <http://www.gnu.org/licenses/> or
19 write to the Free Software Foundation, Inc.,
20 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
23 #include <SDL.h>
26 #include <stdio.h>
27 #include <stdint.h>
28 #include <assert.h>
31 {
36 /* extract drive name */
42 }
46 /* search for end of string or stream separator */
48 end++;
50 /* search for begin of file extension */
55 }
59 ext++;
61 /* search for end of directory name */
64 p++;
66 }
73 }
80 }
81 }
85 }
90 }
91 }
95 }
100 }
105 }
109 }
113 }
118 }
123 }
126 {
128 }
131 {
134 {
137 }
139 }