[fpc-pascal] struct definition in C

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Sun Mar 23 19:39:28 CET 2014


 

Hi, 

What would be the equivalent of the following struct definition in C? 

typedef struct MyStruct
{
 unsigned a :6;
 unsigned b :15;
 unsigned c:11;
}MyStruct; 

I imagine this is some sort of struct initialization. Is thi spossible
in FPC as well, or what is the best alternative? 

Kind regards, Darius Blaszyk 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140323/6738c68c/attachment.html>


More information about the fpc-pascal mailing list