]> icculus.org git repositories - btb/d2x.git/blob - include/strutil.h
use the orientation parameter of g3_draw_bitmap
[btb/d2x.git] / include / strutil.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14 #ifndef _STRUTILS_H
15 #define _STRUTILS_H
16
17 #if defined(macintosh)
18  extern int stricmp(const char *str1, const char *str2);
19  extern int strnicmp(const char *str1, const char *str2, int n);
20 #elif !defined(_WIN32)
21 # include <string.h>
22 # define stricmp(a,b) strcasecmp(a,b)
23 # define strnicmp(a,b,c) strncasecmp(a,b,c)
24 #endif
25
26 #ifdef _WIN32_WCE
27 # define stricmp _stricmp
28 # define strnicmp _strnicmp
29 # define strlwr _strlwr
30 # define strrev _strrev
31 #endif
32
33 #ifndef _WIN32
34 #ifndef __DJGPP__
35 void strupr( char *s1 );
36 void strlwr( char *s1 );
37 #endif
38
39 void strrev( char *s1 );
40 #endif
41
42 // remove extension from filename, doesn't work with paths.
43 void removeext(const char *filename, char *out);
44
45 //give a filename a new extension, doesn't work with paths.
46 extern void change_filename_extension( char *dest, const char *src, char *new_ext );
47
48 #if !defined(__MSDOS__) && !(defined(_WIN32) && !defined(_WIN32_WCE))
49 void _splitpath(char *name, char *drive, char *path, char *base, char *ext);
50 #endif
51
52 #endif /* _STRUTILS_H */