by
35 6
0
5
208k
3
Top 1% !
Popular
Pearl of Wisdom
Specified
OpenSource
Popularity: 7621st place

Published on:

No tags for this snippet yet.
Languagec
LicenseMIT_X11

struct code example

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/212036/struct-code-example?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
typedef unsigned short byte2; typedef unsigned long byte4; struct header { /* totally 44 bytes; endianness (all the rest are little) */ /* RIFF */ char ChunkID[4]; // big byte4 ChunkSize; char Format[4]; // big /* fmt */ char SubChunk1ID[4]; // big byte4 SubChunk1Size; byte2 AudioFormat; byte2 NumChannels; byte4 SampleRate; byte4 ByteRate; byte2 BlockAlign; byte2 BitsPerSample; /* data */ char SubChunk2ID[4]; // big byte4 SubChunk2Size; };
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus