Results 1 to 3 of 3
  1. #1
    Registered
    Join Date
    Jul 2004
    Location
    WA & ID
    Posts
    47

    string termination

    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

  2. #2
    Senior Member mccoyn's Avatar
    Join Date
    Nov 2003
    Location
    Michigan, USA
    Posts
    775
    What language are you using? What function are you using to input the string?

  3. #3
    Registered
    Join Date
    Jul 2004
    Location
    WA & ID
    Posts
    47
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •