fonction str2hex [résolu]
#3
J'avais déjà essayé un truc comme ça mais format %x attend un entier et non un caractère.

En plus, à vue de nez y'a rien qui fait avancer le while et ça va faire une boucle infinie.


Edit : j'ai trouvé la solution du côté de binary :
tcl
proc str2hex { str } {
 binary scan $str H* hex
 return hex
}


Répondre Avertir


Messages dans ce sujet
fonction str2hex [résolu] - par MenzAgitat - 25/05/2009, 04:43
RE: fonction str2hex / str2oct - par CrazyCat - 25/05/2009, 09:46
RE: fonction str2hex / str2oct - par MenzAgitat - 25/05/2009, 15:25
RE: fonction str2hex / str2oct - par CrazyCat - 25/05/2009, 15:50
RE: fonction str2hex [résolu] - par MenzAgitat - 25/05/2009, 16:58

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté