src/hcode/btech/p.mech.mechref_ident.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * find_mechname_by_mechref (const char *ref)


Function Documentation

const char* find_mechname_by_mechref ( const char *  ref  ) 

Definition at line 262 of file mech.mechref_ident.c.

References mechref_start, my_mechref_pile, and name.

Referenced by mech_list_maker(), and try_to_find_name().

00263 {
00264         int i;
00265 
00266         for(i = 0; my_mechref_pile[i].mechref_start; i++)
00267                 if(my_mechref_pile[i].name)
00268                         if(!strncmp(my_mechref_pile[i].mechref_start, ref,
00269                                                 strlen(my_mechref_pile[i].mechref_start)))
00270                                 return my_mechref_pile[i].name;
00271         return NULL;
00272 }


Generated on Mon May 28 04:25:41 2007 for BattletechMUX by  doxygen 1.4.7