src/lib/res.c
RES *
GetNextRes(RES_HEAD **rhead, int rcode, RES *res)
{
   RES *nres;
   int rindex = rcode - r_first;

   if (res == NULL) {
      nres = (RES *)rhead[rindex]->first;
   } else {
      nres = res->res_next;
   }
   return nres;
}
/*
 * Return next resource of type rcode. On first
 * call second arg (res) is NULL, on subsequent
 * calls, it is called with previous value.
 */
Return next resource of type rcode. On first
call second arg (res) is NULL, on subsequent
calls, it is called with previous value.
Return next resource of type rcode . On first call second arg ( res ) is NULL on subsequent calls it is called with previous value .
RES *
GetNextRes(RES_HEAD **rhead, int rcode, RES *res)
{
   RES *nres;
   int rindex = rcode - r_first;
   if (res == NULL) {
      nres = (RES *)rhead[rindex]->first;
   } else {
      nres = res->res_next;
   }
   return nres;
}
RES * GetNextRes ( RES_HEAD * * rhead , int rcode , RES * res ) { RES * nres ; int rindex = rcode - r_first ; if ( res == NULL ) { nres = ( RES * ) rhead [ rindex ] -> first ; } else { nres = res -> res_next ; } return nres ; }
Return next resource of type rcode.
Return next resource of type rcode .