Subject: RE: Porting code with switch/case on mount type (was int)
To: David Maxwell" , "Chris G. Demetriou <cgd@netbsd.org>
From: Martin Husemann <martin@rumolt.teuto.de>
List: current-users
Date: 05/18/1999 08:00:47
> That was the obvious one, I just thought there may have been a
> compatibility
> function around, or an example of a hash etc that was needed elsewhere

Slightly overtuned, but you may let "gperf" generate a perfect hash function
for the names you support...

Or simply order the mentioned if elseif cascade in order of FS type
probability.


Martin