R
Richard Heathfield
CBFalconer said:
Chuck, this subthread started with Mr Brennan's own attempt at a dynamic
string capture routine, which - whilst not perfect - was a fair stab at
the problem, and one which he was clearly prepared to improve. So why
would he want to use ggets?
And still subject to memory exhaustion attacks.
Which is all one more reason to use ggets.
Chuck, this subthread started with Mr Brennan's own attempt at a dynamic
string capture routine, which - whilst not perfect - was a fair stab at
the problem, and one which he was clearly prepared to improve. So why
would he want to use ggets?
The call is simpler
(ggets(&buf) and the results always have the terminal \n
removed. You still have complete error reporting. ggets (and
fggets) are completely portable.
And still subject to memory exhaustion attacks.