Hello
If I have an enum definition
for instance
typedef enum {
F0 = 0,
F1 = 1,
F2 = 2,
F3 =3
} Ftest;
Ftest a;
and I need to do ntoh, which one to use ntohl or ntohs?
And do I have to cast it back to Ftest?
Thanks a lot!
If I have an enum definition
for instance
typedef enum {
F0 = 0,
F1 = 1,
F2 = 2,
F3 =3
} Ftest;
Ftest a;
and I need to do ntoh, which one to use ntohl or ntohs?
And do I have to cast it back to Ftest?
Thanks a lot!
Comment