guys,
I'm a converted from String to Char... thus struggling all the way...
Basically I need a substring(4,10) substitution in the form of char socketRxStream[100]
can someone show me a way I can achieve this???
TIA
Mishu~
guys,
I'm a converted from String to Char... thus struggling all the way...
Basically I need a substring(4,10) substitution in the form of char socketRxStream[100]
can someone show me a way I can achieve this???
TIA
Mishu~
I did it...
memcpy(callerID, &gprs_rx[17], 15 ); //Number will be with +88 [interntional style]
callerID[16]='\0';
is serving me very well...
aq_mishu:
I did it...memcpy(callerID, &gprs_rx[17], 15 ); //Number will be with +88 [interntional style]
callerID[16]='\0';
is serving me very well...
If you KNOW that the number starts with a +, it would be far better to use strstr() to find the + than to assume that is will always start at index 17.