Blitz (303/640)

From:Curt Esser
Date:6 Sep 99 at 12:53:30
Subject:Re: Cli Args

Hi ZimZum

On 05-Aug-99, ZimZum wrote:
> Hi all
>
> Hmm I've just been making some utilities for my game which use quite a lot
> of CLI args, and I've come across something bloody annoying.
>
> I dunno if its a bug in AmigaOS or just Blitz, but it seems that you can
> only pass a certain amount of characters as arguments to a Blitz program,
> so if I send a lot of small files as arguments to it (which I need to do)
> , the program reads only about half of them.
>
> Is there any way past this ?

If you are up to using the OS commands, I think it is possible.

There is an option in the OS ReadArgs_ command that allows using a fixed
buffer-size for the arguments, which is probably what the Blitz command is
doing.
So, once this buffer is filled, that's all you get...

But you can also let the OS allocate the needed buffers as it goes, so I
think you could get any number of arguments that way (if there is enough
free Ram)

See the AutoDocs for the information.

Later...



Yours electronically,
Curt Esser
camge@ix.netcom.com
http://members.xoom.com/Curt_Esser/

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie