2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 #include "iffparse_intern.h"
8 /*****************************************************************************
11 #include <proto/iffparse.h>
13 AROS_LH2(STRPTR
, IDtoStr
,
16 AROS_LHA(LONG
, id
, D0
),
17 AROS_LHA(STRPTR
, buf
, A0
),
20 struct Library
*, IFFParseBase
, 45, IFFParse
)
25 id - pointer to an IFF chunk identfication code.
26 buf - buffer into which the id will be stored. Should at least be 5 bytes.
29 buf - pointer to the supplied buffer.
32 Assumes that the supplied ID is stored in local byte order.
35 // Print the ID of the current contextnode
38 struct ContextNode *cn;
40 if (cn = CurrentChunk(iff)
43 "ID of current chunk: %s\n",
54 *****************************************************************************/
58 UBYTE
*idbuf
= (UBYTE
*)&id
;
62 /* If CPU is little endian, then we must "rotate" when writing to the string */
64 #if (AROS_BIG_ENDIAN == 0)
70 /* Big endian CPU: no problems */