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.
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