Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Public access to Argv0__[]
Re: Public access to Argv0__[] [message #56675 is a reply to message #56669] Fri, 02 April 2021 15:22 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
mirek wrote on Fri, 02 April 2021 03:48

Something like

String GetArgv0();

Yes. Exactly.
mirek wrote on Fri, 02 April 2021 03:48

(things are complicated as Argv0 is POSIX specific...)

It is coming from main(int argc, char **argv) ...
A note from the API that I'm using:
Special consideration is required for argv[0]. On Unix, this argument passes the part of the command line that is used to locate the executable. Prolog uses this to find the file holding the running executable. The Windows version uses this to find a module of the running executable. If the specified module cannot be found, it tries the module libswipl.dll, containing the Prolog runtime kernel.



Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: InFilterStream::Out() is buggy: a possible bugfix
Next Topic: Issue with FileCopy() on LinuxMint
Goto Forum:
  


Current Time: Sun May 12 12:56:10 CEST 2024

Total time taken to generate the page: 0.02063 seconds