home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 2 / DATAFILE_PDCD2.iso / utilities2 / desklib / Libraries / LinkList / c / !Macros next >
Encoding:
Text File  |  1992-03-26  |  1.4 KB  |  52 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    LinkList.!Macros.c
  12.     Author:  Copyright © 1992 Jason Williams
  13.     Version: 1.02 (16 Mar 1992)
  14.     Purpose: Linked list handling functions
  15. */
  16.  
  17. /*
  18.   ===========================================================
  19.   The following functions are defined as macros in LinkList.h
  20.   ===========================================================
  21.  
  22.   extern void *LinkList_FirstItem(linklist_header *anchor)
  23.   {
  24.     return(anchor->next);
  25.   }
  26.  
  27.  
  28.   extern void *LinkList_LastItem(linklist_header *anchor)
  29.   {
  30.     return(anchor->previous);
  31.   }
  32.  
  33.  
  34.   extern void LinkList_Init(linklist_header *item)
  35.   {
  36.     item->next     = NULL;
  37.     item->previous = NULL;
  38.   }
  39.  
  40.  
  41.   extern void *LinkList_NextItem(linklist_header *item)
  42.   {
  43.     return(item->next);
  44.   }
  45.  
  46.  
  47.   extern void *LinkList_Previous_Item(linklist_header *item)
  48.   {
  49.     return(item->previous);
  50.   }
  51. */
  52.