[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Skum struct.



det her skulle vist virke... eller er de kun i djgpp? :

 #define PACKED __attribute__ ((packed))
 #pragma pack(1)

typedef struct {

>   indicat  indic     PACKED;  /* 8   Callsign                     */
>   indicat  relai[8]  PACKED;  /* 64  Digis path                   */
>   int     lastmes   PACKED;  /* 4   Last L number                */
>   int     nbcon     PACKED;  /* 4   Number of connexions         */
>   int     hcon      PACKED;  /* 4   Last connexion date          */
>   int     lastyap   PACKED;  /* 4   Last YN date                 */
>   ushort flags     PACKED;  /* 2   Flags                        */
>   ushort on_base   PACKED;  /* 2   ON Base number               */
>   uchar    nbl       PACKED;  /* 1   Lines paging                 */
>   uchar    lang      PACKED;  /* 1   Language                     */
>   int     newbanner PACKED;  /* 4   Date of new banner (lang.NEW)*/
>   ushort   download  PACKED;  /* 2   Download size in KB          */
>   char     free[20]  PACKED;  /* 20  Reserved                     */
>   char     thema     PACKED;  /* 1   Current thema selection      */
>   char     nom[18]   PACKED;  /* 18  1st Name                     */
>   char     prenom[13] PACKED;  /* 13  Christian name               */
>   char     adres[61] PACKED;  /* 61  Address                      */
>   char     ville[31] PACKED;  /* 31  City                         */
>   char     teld[13]  PACKED;  /* 13  home phone                   */
>   char     telp[13]  PACKED;  /* 13  job phone                    */
>   char     home[41]  PACKED;  /* 41  home BBS                     */
>   char     qra[7]    PACKED;  /* 7   Qth Locator                  */
>   char     priv[13]  PACKED;  /* 13  PRIV directory               */
>   char     filtre[7] PACKED;  /* 7   LC choice filter             */
>   char     pass[13]  PACKED;  /* 13  Password                     */
>   char     zip[9]    PACKED;  /* 9   Zipcode                      */
>
> } info               ;  /* 360 bytes = lenght of one record */

Geekster
sslug@sslug - http://hjem.get2net.dk/geekster




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:07 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *