Hi guys!
please tell me - how to determine the length of the input stream without reading simbols ? (for save the input string)
thanks in advance ))

Recommended Answers

Reading the input stream is the only standard way to do it. That means you have to dynamically expand the input buffer with realloc() while reading the input stream.

Jump to Post

All 2 Replies

Reading the input stream is the only standard way to do it. That means you have to dynamically expand the input buffer with realloc() while reading the input stream.

commented: +++++++++ +1

Ancient Dragon , thank you for the hint of the good option to solve this problem!))