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

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

This is a discussion on is there a function that reads a certain number of chars on command line? within the C Programming forums, part of the General Programming Boards category; Is there such a function or does one have to write it himself using getchar() and appending the chars into ...

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.