gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gforth] How do I access the program name / argv[0] in Forth?


From: Andrew Pennebaker
Subject: [gforth] How do I access the program name / argv[0] in Forth?
Date: Sat, 6 Oct 2012 09:55:57 -0400

The gforth docs say to access arguments by calling next-arg, but this omits the program name, which would be printed in a C-like language.

Since argv[0] seems to be automatically removed from the argument vector in Forth, is there a special function I can call that does return it?

--
Cheers,

Andrew Pennebaker
www.yellosoft.us

reply via email to

[Prev in Thread] Current Thread [Next in Thread]