StringToHex
#1

Hi guys,

I searched it, but I didn't find. I need function, that converts string to hex. I know, it's possible with sscanf, but I need to do that WITHOUT sscanf.

pawn Код:
new
    string[ 50 ],
    hex
;
format( string, sizeof( string ), "%x%x", 0x000000 , 255 );
sscanf( string, "x", hex );
printf( "%d %x", hex, hex );
I really need this...

Thanks !
Reply


Messages In This Thread
StringToHex - by zgintasz - 13.06.2012, 09:51
Re: StringToHex - by Vince - 13.06.2012, 09:54
Re: StringToHex - by zgintasz - 13.06.2012, 10:07
Re: StringToHex - by MP2 - 13.06.2012, 10:18

Forum Jump:


Users browsing this thread: 1 Guest(s)