PDA

View Full Version : Searching for character arrays



Mungo
04-25-2004, 03:27 AM
So another problem. I have a hierachy of objects and they all have names such as 'cube' etc but now i need to search through to get to this object but i dont have a clue how to search for this character array. I know how to search through the hiearchy its just i dont know how to find a certain string. Does this make sense?? my brains on a complete shutdown today agh!

ZbuffeR
04-26-2004, 02:23 PM
if (strcmp(searchedName,name[i])==0) {
// found !!
}