How can I define a type that is equal to 16 byte

  • A+

I want to define a type that be equal to an array of 16 byte. Something such as this:

typedef uint8_t[16] mynewType; 

but I am getting error. How can I define such type?

I am getting several errors on this line such as:

missing ';' before '['   empty attribute block is not allowed     missing ']' before 'constant' 'constant'   


typedef uint8_t mynewType [16]; 


:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: