News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

question on converting a c structure

Started by rags, March 08, 2006, 07:07:09 AM

Previous topic - Next topic

rags

I have these two stuctures in c:

typedef struct row_list
    {
      int gc;
      int  z;
     }row_list;

typedef struct col_list
    {
      int  lsize;
      int row_offset;
      struct  row_list *ptr;
     }col_list;

That I want to convert to asm. I have this-

row_list STRUCT
       gc DWORD ?
        z  DWORD ?
row_list ENDS

col_list STRUCT
        lsize           DWORD ?
       row_offset  DWORD ?
       Lprow_list   DWORD ?
col_list ENDS



Am I correct in my understanding that -
struct  row_list *ptr
is just a pointer to a row_list structure, thus its just a dword?
regards,
rags
God made Man, but the monkey applied the glue -DEVO

jckl

i am not 100% sure but i would assume it to be

       Lprow_list   row_list <?>

If i am incorrect then sry.

asmfan

in 32bit applications any pointer has a size of 32bit or DWORD (DD) type.
Russia is a weird place