int mount(char *NomDuVolume, char *PointDeMontage, int TypeDuVolume);
Le type du volume TypeDuVolume est le plus souvent 0.
#include <stdio.h>
#include <stdlib.h>
#include <sys/mount.h>
if (mount("/dev/cdrom0", "/cdrom", 0)==-1)
{
...
}
...
if (umount("/dev/cdrom0", 0)==-1)
{
...
}
...