Re: Buffer or Realloc?



"bwaichu@xxxxxxxxx" wrote:

The below compiles and passes lint, but that doesn't mean my
approach is good or that I did not over look something. The
style could use some work.

Please dig in and tear it apart.

Here's my first attempt at a resize buffering function:
.... snip code ...

Take a look at my ggets function, available at:

<http://cbfalconer.home.att.net/download/>

which is written in purely standard C and is portable.

--
Chuck F (cbfalconer@xxxxxxxxx) (cbfalconer@xxxxxxxxxxxxx)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE maineline address!


.