Thread: is there a function that reads a certain number of chars on command line?

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    31

    is there a function that reads a certain number of chars on command line?

    Is there such a function or does one have to write it himself using getchar() and appending the chars into a buffer in a loop?

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    You already asked this here. Also, did you read the FAQ, as Dave suggested in that thread? If you did, you would already know that command line input is in a buffer already, and you can do whatever you need to with it.

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    84
    It could be just me, but I think that by "command line" he means stdin. In which case this FAQ entry holds the answer.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 08:28 AM
  2. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  4. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  5. Bisection Method function value at root incorrect
    By mr_glass in forum C Programming
    Replies: 3
    Last Post: 11-10-2005, 09:10 AM