linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* argv[0]
@ 2006-01-12 23:16 a.biardi
  2006-01-13  9:52 ` argv[0] wwp
  2006-01-13 12:26 ` argv[0] Steve Graegert
  0 siblings, 2 replies; 6+ messages in thread
From: a.biardi @ 2006-01-12 23:16 UTC (permalink / raw)
  To: linux-c-programming


Hi,

Is there any C function that can tell me what argv[0] is, outside 
main()?

I thought to use getpid() and then look at /proc/<pid>/cmdline but 
doesn't seem portable. Any hints?

Thanks,
Andrea.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-02-24 13:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-12 23:16 argv[0] a.biardi
2006-01-13  9:52 ` argv[0] wwp
2006-01-13 11:52   ` argv[0] a.biardi
2006-01-13 12:19     ` argv[0] Neil Horman
2006-01-13 12:26 ` argv[0] Steve Graegert
2006-02-24 13:59   ` argv[0] a.biardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).