> 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:
pgp4aOSjI5cw0.pgp
Description: PGP signature