i have to get an integer out of the unsigned char string and assign it to unsigned int varable....
i mean if i have
unsigned char array = { "123"};
i simply want to get either 1 or 2 or 3 out of it
and assign it to
unsigned int variable..
????????????????????
razor1234
0
Newbie Poster
Recommended Answers
Jump to Post
unsigned int val = (unsigned int)array[0]; // For the value 1
All 4 Replies
twomers
408
Posting Virtuoso
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
mvmalderen
2,072
Postaholic
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
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.