src/lib/res.c
RES *
GetResWithName(int rcode, const char *name)
{
   RES_HEAD *reshead;
   int rindex = rcode - r_first;
   RES item, *res;

   LockRes();
   reshead = res_head[rindex];
   item.name = (char *)name;
   res = (RES *)reshead->res_list->search(&item, res_compare);
   UnlockRes();
   return res;

}
/*
 * Return resource of type rcode that matches name
 */
Return resource of type rcode that matches name
Return resource of type rcode that matches name
RES *
GetResWithName(int rcode, const char *name)
{
   RES_HEAD *reshead;
   int rindex = rcode - r_first;
   RES item, *res;
   LockRes();
   reshead = res_head[rindex];
   item.name = (char *)name;
   res = (RES *)reshead->res_list->search(&item, res_compare);
   UnlockRes();
   return res;
}
RES * GetResWithName ( int rcode , const char * name ) { RES_HEAD * reshead ; int rindex = rcode - r_first ; RES item , * res ; LockRes ( ) ; reshead = res_head [ rindex ] ; item . name = ( char * ) name ; res = ( RES * ) reshead -> res_list -> search ( & item , res_compare ) ; UnlockRes ( ) ; return res ; }
Return resource of type rcode that matches name
Return resource of type rcode that matches name