linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: a.biardi@tiscali.it
To: linux-c-programming@vger.kernel.org
Subject: argv[0]
Date: Fri, 13 Jan 2006 00:16:23 +0100	[thread overview]
Message-ID: <200601130016.23410.a.biardi@tiscali.it> (raw)


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.

             reply	other threads:[~2006-01-12 23:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-12 23:16 a.biardi [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200601130016.23410.a.biardi@tiscali.it \
    --to=a.biardi@tiscali.it \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).