Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Convert Non-standard C struct data to standard C struct

by BrowserUk (Pope)
on Apr 28, 2013 at 17:04 UTC ( #1031100=note: print w/replies, xml ) Need Help??


in reply to Re^2: Convert Non-standard C struct data to standard C struct
in thread Change the data to have the format which is like a C struct.

Yup! Pre-ANSI C allowed untyped vars to default to ints, but that did not extend to struct members; you cannot initialise struct members individually; and you don't assign the curlies to the tagname


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^3: Convert Non-standard C struct data to standard C struct

Replies are listed 'Best First'.
Re^4: Convert Non-standard C struct data to standard C struct
by Laurent_R (Abbot) on Apr 28, 2013 at 21:20 UTC

    Yes, and I also chose my example in a way to show how to declare nested structures, which is quite different from the OP's example.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031100]
help
Chatterbox?
[NetWallah]: /stevieb I dont understand - the poster had a very legitimate issue, and expressed it clearly. WHat did you have a problem with?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2017-02-23 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (347 votes). Check out past polls.