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

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: stopchunks.c,v 1.1 1997/02/03 16:44:28 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_LH3(LONG, StopChunks,
  16.  
  17. /*  SYNOPSIS */
  18.     AROS_LHA(struct IFFHandle *, iff, A0),
  19.     AROS_LHA(LONG             *, propArray, A1),
  20.     AROS_LHA(LONG              , numPairs, D0),
  21.  
  22. /*  LOCATION */
  23.     struct Library *, IFFParseBase, 22, IFFParse)
  24.  
  25. /*  FUNCTION
  26.     Declares multiple stop chunks from th typ/id pairs supplied.
  27.  
  28.     INPUTS
  29.       iff    - pointer to an IFFHandle struct.
  30.     propArray  - pointer to an array of longword chunk types and identifiers.
  31.     numPairs  - number of type/id pairs in the propArray.
  32.  
  33.     RESULT
  34.     error       - 0 if successfull, IFFERR_#? otherwise.
  35.  
  36.     NOTES
  37.  
  38.     EXAMPLE
  39.  
  40.     BUGS
  41.  
  42.     SEE ALSO
  43.     StopChunk()
  44.  
  45.     INTERNALS
  46.  
  47.     HISTORY
  48.   27-11-96    digulla automatically created from
  49.       iffparse_lib.fd and clib/iffparse_protos.h
  50.  
  51. *****************************************************************************/
  52. {
  53.     AROS_LIBFUNC_INIT
  54.     AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
  55.  
  56.     LONG count;
  57.     LONG err;
  58.  
  59.     for (count = 0; count < numPairs; count ++ )
  60.     {
  61.     if ((err = StopChunk(iff, propArray[0], propArray[1])))
  62.         return (err);
  63.     propArray = &propArray[2];
  64.     }
  65.     return (NULL);
  66.  
  67.     AROS_LIBFUNC_EXIT
  68. } /* StopChunks */
  69.