2 pièce(s) jointe(s)
sscanf avec unsigned char
Bonjour tout le monde,
j'ai un petit soucis avec ce code qui fait bien ce que je veux mais qui me sort par la suite un stack around avec la variable aby_start_stop :
Code:
1 2 3 4
|
unsigned char *pby_param_value;
unsigned char aby_start_stop;
sscanf((const char*)pby_param_value, "%d", &aby_start_stop);http://www.developpez.net/forums/attachments/p229228d1482134960/c-cpp/cpp/sscanf-unsigned-char/titre2.png/ |
Pièce jointe 229226Pièce jointe 229231
J'ai bien mon aby_start_stop égale à 125, sauf que un stack around gâche le paysage, je pense sûrement que le typage n'est pas le bon, à votre avis ?
Merci !