components/prboom/mmus2mid.c
//
// TWriteLength()
//
// Write the length of a MIDI chunk to a midi buffer. The length is four
// bytes and is written byte-reversed for bigendian. The pointer to the
// midi buffer is advanced.
//
// Passed a pointer to the pointer to a midi buffer, and the length to write
// Returns nothing
//
TWriteLength()
Write the length of a MIDI chunk to a midi buffer. The length is four
bytes and is written byte-reversed for bigendian. The pointer to the
midi buffer is advanced.

Passed a pointer to the pointer to a midi buffer, and the length to write
Returns nothing
TWriteLength () Write the length of a MIDI chunk to a midi buffer . The length is four bytes and is written byte - reversed for bigendian . The pointer to the midi buffer is advanced . Passed a pointer to the pointer to a midi buffer and the length to write Returns nothing
static void TWriteLength(UBYTE **midiptr,ULONG length)
{
  *(*midiptr)++ = (unsigned char)((length>>24)&0xff);
  *(*midiptr)++ = (unsigned char)((length>>16)&0xff);
  *(*midiptr)++ = (unsigned char)((length>>8)&0xff);
  *(*midiptr)++ = (unsigned char)((length)&0xff);
}
static void TWriteLength ( UBYTE * * midiptr , ULONG length ) { * ( * midiptr ) ++ = ( unsigned char ) ( ( length >> 24 ) & 0xff ) ; * ( * midiptr ) ++ = ( unsigned char ) ( ( length >> 16 ) & 0xff ) ; * ( * midiptr ) ++ = ( unsigned char ) ( ( length >> 8 ) & 0xff ) ; * ( * midiptr ) ++ = ( unsigned char ) ( ( length ) & 0xff ) ; }
TWriteLength()
Write the length of a MIDI chunk to a midi buffer.
TWriteLength () Write the length of a MIDI chunk to a midi buffer .
// proff: Added typecast to avoid warning