Attribute Packed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ArkonJavia
    New Member
    • Oct 2013
    • 1

    #1

    Attribute Packed

    Hi,
    I trying to do a code for POS Terminal (Nurit 8400) and i have problems to return some values.

    I found the command __attribute__(( __packed__)) on google and, some peoples told me to use this in structs, solving my problem.
    Now, i have other problem: this command doesn't work on Nurit 8400.

    Anyone have idea about solve this problem?

    Arkon.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    You should not need to do this just to get your code working unless there is some buffer your code overlays. That is, in C using a volatile type.

    Comment

    Working...