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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…