/*
    (C) 1995-96 AROS - The Amiga Replacement OS
    $Id: localitemdata.c,v 1.1 1997/02/03 16:44:25 digulla Exp $

    Desc:
    Lang: english
*/
#include "iffparse_intern.h"

/*****************************************************************************

    NAME */
#include <proto/iffparse.h>

	AROS_LH1(APTR, LocalItemData,

/*  SYNOPSIS */
	AROS_LHA(struct LocalContextItem *, localItem, A0),

/*  LOCATION */
	struct Library *, IFFParseBase, 32, IFFParse)

/*  FUNCTION
	Returns a  pointer to the userdata allocated in AllocLocalItem.
	This function returns NULL for an input of NULL.

    INPUTS
	localItem - pointer to a LocalContextItem struct or NULL.

    RESULT
	data	  - pointer to user data or NULL.

    NOTES

    EXAMPLE

    BUGS

    SEE ALSO
	AllocLocalItem(), FreeLocalItem()

    INTERNALS

    HISTORY
  27-11-96    digulla automatically created from
	  iffparse_lib.fd and clib/iffparse_protos.h

*****************************************************************************/
{
    AROS_LIBFUNC_INIT
    AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)

    return
    (
	localItem !=NULL ?
	GetIntLCI(localItem)->lci_UserData :
	NULL
    );

    AROS_LIBFUNC_EXIT
} /* LocalItemData */
