Content originally posted in LPCWare by Rob65 on Sat Jan 28 23:57:06 MST 2012
Hm,
I think we start to need a moderator in this forum...
Why start swearing ???
Things like shit, wft or o my god do not belong in this forum so I kindly ask you to refrain from using these things in the future.
I use sizeof a lot and it always works for me - even om my lpc1769.
And what did you think ???
Quote:
........ I just got to the definition of uint8_t - it's
typedef unsigned char uint8_t;
Why is it called int if it's a char? :(
What else is a data type than a representation of some bytes or words in memory :eek:
I use uit8_t .. uint64_t on different platform. The nice thing is that I now have one datatype specifying the exact amount of bits. While on the ARM an unsigned int may be 32 bits, on some other processors I used, an (unsigned) int was 64 bits and on yet another one 16 bits.
Rob