Search:

Type: Posts; User: Klint777

Search: Search took 0.00 seconds.

  1. Not really. I didn't realize it was variable...

    Not really. I didn't realize it was variable length, that's why I made it as long as the string put in the input buffer using "strlen()". I thought I was being more efficient, but in retrospect its...
  2. Passing filename - as inputted string - to fopen() function

    I figured this might as well be in its own thread.

    I'm surprised how I can't find a solution to this problem on the internet. It must be a very common error:

    Here is the code in question:
  3. My main concern, at the beginning, was with...

    My main concern, at the beginning, was with file/user input. In the form of strings.

    I don't want to just declare a huge array, and hog that memory 'in case' the user puts loads of characters in -...
  4. Blimey! I never thought of that. Stdin is a...

    Blimey! I never thought of that.

    Stdin is a strange creature, isn't it?

    Thanks for clearing that up.
  5. Yes more than 150, sorry. Its not so much that...

    Yes more than 150, sorry.

    Its not so much that its if I put in the same amount of characters as the buffer, its just exceeding the buffer in general. Be it one hundred times over, or just 1...
  6. Buffer Length

    I'm just working my way through your information and various approaches. I was pleasantly surprised by the depth and amount of information I got back!

    I wrote this little program below:



    /*...
  7. Thanks

    Thanks for that FAQ.

    It explained clearly the dangers of using gets, and how it can cause a lot of bother.

    I even wrote an example myself (using a structure) and got the same results, just to...
  8. What is the best example of obtaining a string from a user/filestream?

    First post here, apologies in advance for any blasphemous/offensive breaches of posting etiquette.

    In a nutshell, I would like a fool proof and efficient method of obtaining a string from the...
Results 1 to 8 of 8