×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Thanx for the info. But I am out of the league with using MI. I have never used any MI function so far.
Mihael
-----Original Message-----
From: c400-l-bounces+mihael.schmidt=rossmann.de@xxxxxxxxxxxx [mailto:c400-l-bounces+mihael.schmidt=rossmann.de@xxxxxxxxxxxx] On Behalf Of Mark S. Waterbury
Sent: Friday, December 03, 2010 9:05 PM
To: C programming iSeries / AS400
Subject: Re: [C400-L] no alloca() available - alternative?
Hi, Mihael:
See:
http://www.gnu.org/s/libc/manual/html_node/Variable-Size-Automatic.html
I would not substitute "malloc" for "alloca" as that memory would never
get freed until end-of-activation-group or end-of-job.
Look in the ILE C/C++ OS/400 MI Library Reference for the modasa
function, and the MI builtin "_modasa" ... this might allow you do
create your own version of "alloca" ...
HTH,
Mark
On 12/3/2010 2:46 PM, Schmidt, Mihael wrote:
Hi,
the ported software uses alloca() at some locations. Obviously alloca() is not support on IBM i. What is the alternative? malloc? What do I have to take into account when changing this to malloc? (besides freeing the memory afterwards)
Thanx in advance
Mihael Schmidt
Anwendungsentwicklung
Dirk Rossmann GmbH
Iserhägener Str.16
30938 Burgwedel
* +49 (05139) 898 - 4353
Handelsregister-Nr. HRB 120546, Amtsgericht Hannover
Ust-Id-Nr. DE 115055186
St.-Nr. 16 / 205 / 65401
Geschäftsführer: Dirk Roßmann, Alice Schardt-Roßmann, Roland Frobel, Klaus Praus
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.