What's new

Closed convert char array to hex and pass the value as string?

Status
Not open for further replies.

fireclouu

Honorary Poster
Joined
Jun 1, 2014
Posts
440
Solutions
1
Reaction
152
Points
190
iexplain ko rito yung gusto kong mangyari (paki assume na lang po na declared na mga variables):
C:
var[1]='A';

kaya ko siya iprint ng hex:
C:
printf("%x", var[1]); // 41

paano ko po kaya maipapasa as 41 sa another char yung var[1]? nagresearch ako ng kaunti, nagagawa raw to ng memcpy pero di ko makuha procedure niya.

salamat 😁

ps. may workaround ako para dito, kaso di ako kuntento baka may alam kayo na direkta yung manipulation, plano ko sana i-fprintf tapos iread yung text saka ipasa sa variable
 
Last edited:
Status
Not open for further replies.
Back
Top