File System detection in QNX

HI,
How do I detect a file system type present on a device in QNX?
(EX: FAT16 present on floppy, FAT32 on another floppy)
I need to find out wht type of file system is present on a device, may be a floppy or a flash memory card etc…
Is there any library or utilities for that?

Thanks in advance for the help.

For harddisk, look at “fdisk”, it has a command interface. I am not sure about floppy disk.

You can, of cause, readblock() the first block, and parse the partition table in it.