CommandLine$ ( ) ????

BlitzMax Forums/BlitzMax Programming/CommandLine$ ( ) ????

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In an Open-Watcom compiler I found this function:

But the MinGW compiler doesn't support this function.
If it would I could use a function like this:
Function CommandLine$ ( )
  Local LineLen = GetCmd ( Null , 0 ) + 1
  Local LinePtr:Byte Ptr = MemAlloc ( LineLen )
  Local Text$

  GetCmd LinePtr , LineLen
  Text = String.FromCString ( LinePtr )
  MemFree LinePtr
  Return Text

  Extern
    Function GetCmd ( LinePtr:Byte Ptr , LineLen ) = "_bgetcmd"
  EndExtern
EndFunction