1 /****************************************************************************************/
\r
4 /* Author: Jim Mischel */
\r
5 /* Description: Various useful utility functions. */
\r
7 /* The contents of this file are subject to the Genesis3D Public License */
\r
8 /* Version 1.01 (the "License"); you may not use this file except in */
\r
9 /* compliance with the License. You may obtain a copy of the License at */
\r
10 /* http://www.genesis3d.com */
\r
12 /* Software distributed under the License is distributed on an "AS IS" */
\r
13 /* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See */
\r
14 /* the License for the specific language governing rights and limitations */
\r
15 /* under the License. */
\r
17 /* The Original Code is Genesis3D, released March 25, 1999. */
\r
18 /* Genesis3D Version 1.1 released November 15, 1999 */
\r
19 /* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */
\r
21 /****************************************************************************************/
\r
25 #include "basetype.h"
\r
30 char *Util_Strdup (const char *s);
\r
31 geBoolean Util_SetString (char **ppString, const char *NewValue);
\r
33 geBoolean Util_IsValidInt (char const *Text, int *TheVal);
\r
34 geBoolean Util_IsValidFloat (const char *Text, geFloat *TheFloat);
\r
35 unsigned int Util_htoi (const char *s);
\r
36 void Util_QuoteString (const char *s, char *d);
\r
38 // Obtain the integer at the end of a string.
\r
39 // For example, foo123 will return the value 123 in *pVal
\r
40 // pLastChar points to the last non-numeric character (possibly end of string)
\r
41 geBoolean Util_GetEndStringValue( const char *psz, int32 *pVal, int32 *pLastChar) ;
\r
43 geBoolean Util_FileExists (const char *Filename);
\r