> May I suggest a code generating macro instead:
> 
> #define PRINT_FS(pref, fs, suf) \
>       case pref##fs##suf: \
>               printf (#fs "\n"); \
>               break;

If all operating systems recognized all filesystems, this would be
reasonable, however, this is not true.  For instance, I do not think
Linux knows anything about the MSLOSS filesystem.  Thus, here your macro
would lose.

Attachment: pgpy4QvINxutA.pgp
Description: PGP signature

Reply via email to