Alex Rivera | Logout

Using '__progname' instead of argv[0]

Asked 2008-11-07T21:27:39.907
20

In the C / Unix environment I work in, I see some developers using __progname instead of argv[0] for usage messages. Is there some advantage to this? What's the difference between __progname and argv[0]. Is it portable?

Edit
Report

1 Answer

4

It's a BSDism, and definitely not portable.

answered 2008-11-07T21:34:59.393

Your Answer