Re[3]: [Dev-C++] how to do a shell like input..
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <ca...@kr...> - 2003-04-26 13:13:42
|
> #define BUFFER_MAX_SIZE 4096 // <- I think this limit is even
> // used in the bash
I thought about using a small buffer for starters and then reallocate
memory when needed but that seemed much to inefficient to me, since
realloc whether adds very often very little space or not so often a
lot of space to the string. so you either end up with very much
performance on reallocating tiny additions to the buffer or with a
too long buffer in which case you could've use a large buffer in the
first place. so that's what I'm doing I guess. ;)
gruss
/Christian mailto:ca...@kr...
---
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|