version gcc 2.95.3
SunOS 5.6

Hi,

I have the following snippet

Code:
    if (!(seq_filename = (char *)getenv(SEQ_FILE)))
printf("before error_func %s\n", seq_filename);
/* printf("before error_func %s\n", (char *)getenv(SEQ_FILE)); */
        error_func("In get_seq_no().",
                   "Environment variable SEQUENCE_FILE not set.",
                    SYS | FATAL);
printf("failure: \n");
    strcpy(seq_identifier, identifier);
and the if test is failing, my problem is, I don't seem to be able to trap what values exist when it falls over.

I don't have access to gdb which is why I am using printf's at the mo

Could someone show me how to print the values of a

static char * seq_filename
#define SEQ_FILE "SEQUENCE_FILE"



tia,