About GNU Pascal Record Type

pascaltomath at yahoo.fr pascaltomath at yahoo.fr
Wed Jul 11 14:53:11 CEST 2007

 Dear All;

 I would like to ask you if it is possible in 32 Bit and/or 64 Bit GNU Pascal; to determine, to precise the 'Bit' value of each member of a Record, as it is so for a Structure in C.

 Thanks a lot for a prospective reply.

 With kind regards.

 Kadir Yuce

 Below is a C code example :

 #include <stdio.h>

 struct bitprecising
                             char ch : 8;
                             int n : 2;
                             long l : 3;

int main()
               struct bitprecising x;
               struct bitprecising *p;
               p= &x;
              (*p).ch= 'a';
              (*p).n= 1;
              (*p).l= 2L;

              printf("x.ch= %c\n", x.ch);
              printf("x.n= %d\n", x.n);
              printf("x.l= %ld\n", x.l);

 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.g-n-u.de/pipermail/gpc/attachments/20070711/c6b41cee/attachment.htm>

More information about the Gpc mailing list