something like this...Code:for(j = 0; j< 255; j++) { if(!string[j]) { count = j; j = 254; } }
I am kinda tired right now so don't expect much, anyway this is for the count portion.
something like this...Code:for(j = 0; j< 255; j++) { if(!string[j]) { count = j; j = 254; } }
I am kinda tired right now so don't expect much, anyway this is for the count portion.
Asking the right question is sometimes more important than knowing the answer.
Please read the FAQ
C Reference Card (A MUST!)
Pointers and Memory
The Essentials
CString lib