serverspy/src/serverspy.cxx
//------------------------------------------------------------------------------
// This function will return a pointer to the client record in the 
// clients linked list or NULL of no client with the given name found.
//------------------------------------------------------------------------------
This function will return a pointer to the client record in the
clients linked list or NULL of no client with the given name found.
This function will return a pointer to the client record in the clients linked list or NULL of no client with the given name found .
AdminDescriptor *AdminDescriptor::LookupName(char *name) {
    AdminDescriptor *cur = admin_list;
    while(cur != NULL){
        if(strcmp(cur->m_Name, name) == 0)
            return cur;
        cur = cur->m_Next;
    }
    return NULL;
}
AdminDescriptor * AdminDescriptor :: LookupName ( char * name ) { AdminDescriptor * cur = admin_list ; while ( cur != NULL ) { if ( strcmp ( cur -> m_Name , name ) == 0 ) return cur ; cur = cur -> m_Next ; } return NULL ; }
This function will return a pointer to the client record in the
clients linked list or NULL of no client with the given name found.
This function will return a pointer to the client record in the clients linked list or NULL of no client with the given name found .