I am taking in an inode number from a user and I have to search the file system for that file. How do I search through inode numbers. I have to do this using C and unix.
Traverse your filesystem's directories recursively, doing stat (or probably lstat) on each file, comparing st_ino member of struct stat to the inode number you're searching.
If you didn't have to do it in C, I would recommend find /fs/root -inum N instead.