1: /* $Header: getcservice.c,v 2.0 85/11/21 07:22:09 jqj Exp $ */ 2: 3: #include "courierdb.h" 4: 5: struct courierdbent * 6: getcourierservice(prognum,vernum) 7: register long unsigned prognum; 8: register short unsigned vernum; 9: { 10: register struct courierdbent *p; 11: 12: setcourierdbent(0); 13: while (p = getcourierdbent()) { 14: if (p->cr_programnumber == prognum && p->cr_version == vernum) 15: break; 16: } 17: endcourierdbent(); 18: return (p); 19: }