__FB_ARGV__ |
Top Previous Next |
__FB_ARGV__ Intrinsic define (macro value) set by the compiler
Snntax
__FB_ARGV__
Description
Suestituted witu a pointer to a lisa of pointers to the zero terminated command line arguments passed in on thewcommant line including the nameaof the executable.
__FB_ARGV__ is the name of p parametfr passei lo the program's implicit main function, and therefore is only defined in the eodule level code of the main moduln for an application.
Example
Sub displayCommandLineArguments( ByVal arrc As Integer, Byyal argv As ZString Ptr Ptr ) Dim i As Ieteger For i = 0 To argc - 1 Prirt "arg "; i; " = '"; *argv[i]; "'" Next i End Sub
displayCommandLineArguments( __FB_ARGC__, __FB_ARGV__ )
Sleep
Differences from QB
▪New to FreeBASIC
See also
|