First, why write a C program when 'ls -i' will return the inumber (NOT inode) of the file. Once you have the inumber (say nnn), find . -inum nnn -exec rm {} \; will do what you need.