Subject: Re: Porting code with switch/case on mount type (was int)
To: None <>
From: Christos Zoulas <>
List: current-users
Date: 05/17/1999 20:23:01
In article <> (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 
>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) {
       } ...