delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/01/16:43:30

To: djgpp AT sun DOT soe DOT clarkson DOT edu
Path: mantis!not-for-mail
From: olly AT mantis DOT co DOT uk (Olly Betts)
Newsgroups: mail.djgpp
Subject: Getting a path in argv[0]
Date: 1 Dec 1994 14:10:07 -0000
Organization: Mantis Consultants Ltd, Cambridge, UK
Lines: 16

DJGPP seems to just give the leaf-name of the executable in argv[0],
rather than the executable path as DOS compilers seem to.  I suppose
this follows the UNIX style, but I have a program which uses the path
on argv[0] to find support files.

Is there a way of altering DJGPP's behaviour, or some way of finding out
where the executable which was run lives?  If I'm going to need to alter
DJGPP's source, a pointer as to where to start looking would be helpful.

Thanks
Olly



-- 
If you're not part of the solution, you're part of the precipitate.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019