Z
Zbigniew B.
Hallo,
here's a couple of lines from a function:
fname(open)
{
*pwd, *err_log;
char *ctime();
long time(), now;
FILE *fp;
err_log = getenv("ERROR_LOG");
[...never mind the rest...]
The code does compile and works (Linux, gcc) - but everytime after compilation
I've got an annoying warning: "warning: assignment makes pointer from integer
without a cast" - pointing at the line containing the assignment
"err_log = getenv("ERROR_LOG");".
I'm new to C - I'm not sure, what's the problem. Could someone shortly
explain - and make a tip, how to avoid this?
here's a couple of lines from a function:
fname(open)
{
*pwd, *err_log;
char *ctime();
long time(), now;
FILE *fp;
err_log = getenv("ERROR_LOG");
[...never mind the rest...]
The code does compile and works (Linux, gcc) - but everytime after compilation
I've got an annoying warning: "warning: assignment makes pointer from integer
without a cast" - pointing at the line containing the assignment
"err_log = getenv("ERROR_LOG");".
I'm new to C - I'm not sure, what's the problem. Could someone shortly
explain - and make a tip, how to avoid this?