How to get rid of \0 ending of a constant char

Viewed 21

I have the following struct RCD

typedef struct RIFF_CHUNCK_DISCRIPTOR {
   char                RIFF[4];        // RIFF Header      Magic header
   int32_t             ChunkSize;      // RIFF Chunk Size  
   int32_t             WAVE[4];        // WAVE Header      

};

How could I define "RIFF" so that it returns RIFF instead ofRIFF\0

Which returns the letters

0 Answers
Related