1 2 3 4 5 6 7 8
#include <sys/ipc.h> #include <stdio.h> int main(int ac, char **av) { while (*++av) printf("0x%x\n", ftok(*av, 0)); return 0; }