home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-06-21 | 1.4 KB | 61 lines | [TEXT/CWIE] |
- //===================================================================
- //======================= Headers =============================
-
- #include "GameUtilities.h"
- #include <string.h>
-
- //===================================================================
- //======================= Globals =============================
-
-
- //===================================================================
- //======================= #define =============================
-
-
- //===================================================================
- //======================= Function Prototypes =====================
-
-
- /*----------------------------------------------------------------------------\
-
- SetOwner
-
- \----------------------------------------------------------------------------*/
- /*
- tOwnership SetOwner( char individual, char team )
- {
- tOwnership temp;
-
- temp.individual = individual;
- temp.team = team;
-
- return( temp);
-
- }
- */
-
- /*----------------------------------------------------------------------------\
-
- CStrEqual
-
- - checks to see if two c strings are exactly equal up the the null char
-
- \----------------------------------------------------------------------------*/
-
-
- Boolean CStrEqual( char *str1 , char *str2 )
- {
- short end = strlen( str1 );
- short counter;
-
- if( end != strlen( str2) )
- return false;
-
- for( counter = 0; counter < end; counter++ )
- {
- if( str1[ counter ] != str2[ counter ] )
- return false;
- }
-
- return true;
- }