dinohead 0 Newbie Poster 12 Years Ago a simple question, i just can't get around at the moment - if i may if unsigned char *s = 42006f, how can I split/select the hex value into its pairs i.e 42/00/6f using portable ansi c. thanks!! c 0 0 Share WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague 12 Years Ago I already answered this in the other thread in which you asked the same question. 0 0 Share dinohead 0 Newbie Poster 12 Years Ago Sorry I didn't see that, I was previously asking to count the amount, not the actual values. Heres a bit of pseudo of what I'd like unsigned char *s; scanf("%x", &s); Type in 42006f for example I'd like s1=42 s2=00 s3=6f How'd I get that? 0 0 Share WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague 12 Years Ago What is it with you guys???? I said I already answered it. And you asked it again! Look at the damn answer from 2 days ago! 0 0 Share Share Facebook Twitter LinkedIn Reply to this topic Be a part of the DaniWeb community We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge. Sign Up — It's Free!
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague 12 Years Ago I already answered this in the other thread in which you asked the same question. 0 0 Share
dinohead 0 Newbie Poster 12 Years Ago Sorry I didn't see that, I was previously asking to count the amount, not the actual values. Heres a bit of pseudo of what I'd like unsigned char *s; scanf("%x", &s); Type in 42006f for example I'd like s1=42 s2=00 s3=6f How'd I get that? 0 0 Share
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague 12 Years Ago What is it with you guys???? I said I already answered it. And you asked it again! Look at the damn answer from 2 days ago! 0 0 Share