home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / workbench / libs / iffparse / localitemdata.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-03  |  1.2 KB  |  62 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: localitemdata.c,v 1.1 1997/02/03 16:44:25 digulla Exp $
  4.  
  5.     Desc:
  6.     Lang: english
  7. */
  8. #include "iffparse_intern.h"
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13. #include <proto/iffparse.h>
  14.  
  15.     AROS_LH1(APTR, LocalItemData,
  16.  
  17. /*  SYNOPSIS */
  18.     AROS_LHA(struct LocalContextItem *, localItem, A0),
  19.  
  20. /*  LOCATION */
  21.     struct Library *, IFFParseBase, 32, IFFParse)
  22.  
  23. /*  FUNCTION
  24.     Returns a  pointer to the userdata allocated in AllocLocalItem.
  25.     This function returns NULL for an input of NULL.
  26.  
  27.     INPUTS
  28.     localItem - pointer to a LocalContextItem struct or NULL.
  29.  
  30.     RESULT
  31.     data      - pointer to user data or NULL.
  32.  
  33.     NOTES
  34.  
  35.     EXAMPLE
  36.  
  37.     BUGS
  38.  
  39.     SEE ALSO
  40.     AllocLocalItem(), FreeLocalItem()
  41.  
  42.     INTERNALS
  43.  
  44.     HISTORY
  45.   27-11-96    digulla automatically created from
  46.       iffparse_lib.fd and clib/iffparse_protos.h
  47.  
  48. *****************************************************************************/
  49. {
  50.     AROS_LIBFUNC_INIT
  51.     AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
  52.  
  53.     return
  54.     (
  55.     localItem !=NULL ?
  56.     GetIntLCI(localItem)->lci_UserData :
  57.     NULL
  58.     );
  59.  
  60.     AROS_LIBFUNC_EXIT
  61. } /* LocalItemData */
  62.