CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Apr 2004
    Location
    In the back seat of New Horizons.
    Posts
    1,238

    scanf misbehaving...

    I'm not sure if I posted this before, sorry if I did. I'm using gcc. The files are attached.

    Pretty much whenever I input a really long string (over 20 characters) in the first method grab_string, the second time around a string is automatically inputted whenever I call grab_string_ml. Why is this happening and how can I fix it?

    Here's the console info that I have...
    Code:
    $ ./main
    Input something - > wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
    wwwwwwwwwwwwwwwwwwww
    Input something - > w
    Attached Files Attached Files
    Here are the rules, you must obey them or the gender bender will get you.

    And if you ever think of posting without code-tags, the evil monkey will come after you.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured