home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / compat / search / insque.c next >
Encoding:
C/C++ Source or Header  |  1995-04-01  |  260 b   |  14 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <search.h>
  3.  
  4. void
  5. insque(struct qelem *e, struct qelem *p)
  6. {
  7.   if (!e || !p)
  8.     return;
  9.   e->q_back = p;
  10.   e->q_forw = p->q_forw;
  11.   p->q_forw->q_back = e;
  12.   p->q_forw = e;
  13. }
  14.