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

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!))

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.