[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] libc/fdevopen/calloc/malloc (was gcc-3.4.2 bin for wi
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] libc/fdevopen/calloc/malloc (was gcc-3.4.2 bin for win xp?) |
Date: |
Mon, 8 Nov 2004 16:20:38 +0100 (MET) |
Bernard Fouché <address@hidden> wrote:
> - Have something like fdevopenlight() (!) that works like fdevopen
> but without calls to calloc/malloc.
Yeah, I always intented to implement something along that line.
Limited to a fixed set of 3 descriptors (stdin, stdout, stderr), which
probably suffices for most environments. This would eliminate the need
for malloc, as these three descriptors could use a pre-allocated memory
array.
I simply haven't come around yet to really implement it, and integrate
it into the library. IMHO, it should be done about the same way as
the scanf/printf customization is done.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/