I was studying some C code from a college book I have (the subject of the book is Linux programming), and I came across some lines of code I don't understand. I have done some research but I haven't find anything on Internet. Can someone explain this code to me?
I know what environment variables are, the part I don't understand is how this int (*det)(), det()
function works. Sorry if my title is not correct, I just didn't know how to describe the subject better.
#include<stdio.h>
int main(){
int (*det)();
det = getenv("foo");
det();
return 0;
}
*** Thank you for your replies.is there any way to make this program functional, for example print "hallo"?