I am making a program which is run in a Linux shell, and accepts an argument (a directory), and displays all the files in the directory, along with their type.
Outpu
Print d_type as an integer like so:
d_type
printf("%d ", dent->d_type);
and you'll see meaningful values.