Subject: Re: Porting code with switch/case on mount type (was int)
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 05/17/1999 20:23:01
In article <19990517171041.A23129@fundy.ca> david@fundy.ca (David Maxwell) writes:
>I see that our first argument to mount is a const char now, (not sure when
>it happened) and I'm porting some code from FreeBSD that does a switch on
>the mount 'type' (first arg), which used to be an int, and still is for
>them.
>
>Any suggestions on a preffered way of recoding a switch/case block of
>C, now that we have a const char there?
Dunno, if (strcmp(..) == 0) {
} else if (strcmp(..) == 0) {
} ...
christos