[Info-vax] Text processing examples with Fortran requested
Arne Vajhøj
arne at vajhoej.dk
Mon Nov 16 21:26:45 EST 2009
Michael Kraemer wrote:
> Richard B. Gilbert schrieb:
>
>> It doesn't dynamically allocate anything at all. At least it didn't
>> the last time I used Fortran.
>
> I know, but in text processing it may bite you first.
>
>> Dynamic memory allocation is a "C" thing.
>
> It's not a C only thing.
>
>> IMHO it's a useless hangover on a virtual memory system.
>
> Huh? You need memory allocation just everywhere.
> Just think of avoiding buffer overflows by always
> providing buffers of the right length.
Dynamic memory allocation does not prevent buffer overflow.
Checking available length does.
I fact there are many more buffer overflows in C than in Fortran.
Arne
More information about the Info-vax
mailing list