Hello,
I have a function that looks like this:
CMyMessage(char type, char *name, char namelen, char *text, char textlen){
... ?!
}
...
void main()
{
char name[50]="JOHN";
char text[200]="testing123";
CMyMessage(1, name, strlen(name), text, strlen(text));
}
The ranges are:
Type = 0/1;
namelen = 0..50;
textlen = 0..200
How exactly do I turn these chars into numerical values? If it involves using ATOI/ITOA, can you please a very short example?
Thank you.