• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

string termination

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Fractal

Registered
Joined
Jul 27, 2004
Location
WA & ID
Hey,
I have an array of a set lenght, and I'm having a user input a string. I want to output the values of the array only up to the last character of the string, I don't want to output any of the uninitialized array spaces....any help?
Thanks,
Fractal
 
Hey,
Sorry that I didn't include all of that stuff...but I figured it out.
I am using c++ and what I needed was the null character denoted '\0'. I forgot the little quotes and it was driving me buggy.
Thanks anyway!
Fractal
 
Back