Re: Accessing the commandline (argc & argv)

From: [at]} <pfister{>
Date: Fri, 4 Aug 2000 16:48:22 +0200

> is there a way to access the commandline, i.e., to what
> every C program has in the arguments to main ?

We use something like this:

  VAR p: KERNEL32.StringPtr;

BEGIN

  p := KERNEL32.GetCommandLineA();

  IF (p # NIL) & (p$ # "") THEN

     ... do something with the command line parameters ...


  END;



Best regards



Cuno Pfister

Oberon microsystems, Inc.




--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy
Received on Fri Aug 04 2000 - 14:48:22 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:45 UTC