🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #1012

How do I get the program name (argv[0])?

#1012
From: Frank K Carver
Date: Fri, 23 May 1986 23:15
37 lines
1849 bytes
[ Lineater ----> TRASH ]

Hi Guys, More questions.

Does anyone know any way to read the name of an application or accessory
once it has been started (argv[0] to traditional `C' programmers).  I've
been trying to get the info, but can't seem to find it.  In particular,
I would like to have a single version of a RAM using accesory/program -
say an editor or ramdisk, and have it start up with the correct data
size just by changing the name.

Usual caveats apply: 1040, ROM TOS, Lattice C, PD assembler.

Any help, pointers, or workarounds appreciated.

Cheers,
Frank.

----
Frank K Carver   "In space ... no one can hear your laser sound-effect"
		Join the Group Against Gratuitous Acronyms (GAGA) NOW !

Computer Systems Engineering, University of Warwick, Coventry, UK
or "Magrathea", 5 Whitefields, Gibbet Hill Road, Coventry, CV4 7AL, UK

UUCP:		..mcvax!ukc!warwick!fkc
ARPA:             'fraid-not@THE-MOMENT
-- 
Frank K Carver   "In space ... no one can hear your laser sound-effect"
		Join the Group Against Gratuitous Acronyms (GAGA) NOW !

Computer Systems Engineering, University of Warwick, Coventry, UK
or "Magrathea", 5 Whitefields, Gibbet Hill Road, Coventry, CV4 7AL, UK

UUCP:		..mcvax!ukc!warwick!fkc
ARPA:             'fraid-not@THE-MOMENT
Technical Details
Message-ID: <520@snow.warwick.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!seismo!mcvax!ukc!warwick!fkc

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!seismo!mcvax!ukc!warwick!fkc
From: fkc@warwick.UUCP (Frank K Carver)
Newsgroups: net.micro.atari16
Subject: How do I get the program name (argv[0])?
Message-ID: <520@snow.warwick.UUCP>
Date: Fri, 23-May-86 19:15:39 EDT
Article-I.D.: snow.520
Posted: Fri May 23 19:15:39 1986
Date-Received: Thu, 29-May-86 03:29:38 EDT
Reply-To: fkc@snow.UUCP (Frank K Carver)
Organization: Luxury Custom Planets Ltd, Magrathea
Lines: 37