This question is about the funtion system in stdlib.h
I'm utilising the unix command file from within a c program
all the command does is tell whether or not an item is a file or not
my question is whether or not it is possible to run this in the background rather than in the terminal
by this i mean, I don't want the information about whether or not something is a file to go to the terminal, I want to store it in a variable.
I know that system will return an integer value based on whetehr the command ran or not, but I need a specific value as returned, to terminal or otherwise, to be stored in a variable within my program.
any ideas?