I am wondering what the following code means ...
...
{
const char *etc; = SYSCONF_DIR;
...
I am sorry for not able to address this kind of problem properly,
I really have no idea what to call this ...thanks in advance.
I am wondering what the following code means ...
...
{
const char *etc; = SYSCONF_DIR;
...
I am sorry for not able to address this kind of problem properly,
I really have no idea what to call this ...thanks in advance.
The above code assings a macro a pointer named etc
. Your code has a syntax error as of now. Instead of
const char *etc; = SYSCONF_DIR;
It should be
const char *etc = SYSCONF_DIR;
I understand that this might not be a very revealing answer, but the level of the depth of an answer is deemed by the quality of the question. You basically took one line of code and asked us what it does. It's like taking a book, pulling out a sentence, showing it to a friend and asking him what book is this from...
EDIT:
A quick search on google of your snipet reavels that its taken from here. I know that as a fact because the syntax error appears in this book as well. A quick look reveals that the MACRO SYSCONF_DIR
equates to the string "/etc/"
. Also the book explains quite extensively what that function does...