Subject: Re: setting and using progname.
To: Johan Danielsson <joda@pdc.kth.se>
From: Greywolf <greywolf@starwolf.com>
List: tech-userlevel
Date: 10/04/2000 21:50:15
On 4 Oct 2000, Johan Danielsson wrote:

# Date: 04 Oct 2000 13:16:03 +0200
# From: Johan Danielsson <joda@pdc.kth.se>
# To: Andrew Brown <atatat@atatdot.net>
# Cc: NetBSD Userlevel Technical Discussion List <tech-userlevel@netbsd.org>
# Subject: Re: setting and using progname.
# 
# Andrew Brown <atatat@atatdot.net> writes:
# 
# > i suppose if you wished, you could also stuff the strrchr() call
# > into the ?: operator in the strncpy() argument.  :)
# 
# Can we please avoid silly hacks like this? I'd much rather see an `if'
# there than the ?: thing.

What's wrong with '?:'  ?  It's perfectly good code and not silly at
all.  If anything, it's more concise for a simple test.

# /Johan



				--*greywolf;
--
BSD: I Wanna Be Sedated!