vendredi 23 juin 2017

how to convert string to u_int8_t

I have two string variable and I would like convert them to u_int8_t and u_int32_t. how to convert?

p = "test";
p2=test2"


typedef pair<u_int8_t, u_int32_t> x;
x y  = make_tuple(p, p2);

Aucun commentaire:

Enregistrer un commentaire