version 1.6, 2001/11/19 19:02:16 |
version 1.7, 2002/02/01 06:59:17 |
|
|
* The following are routines used to print out debugging information. |
* The following are routines used to print out debugging information. |
*/ |
*/ |
|
|
unsigned char NetTraceFile[256] = "(standard output)"; |
unsigned char NetTraceFile[MAXPATHLEN] = "(standard output)"; |
|
|
void |
void |
SetNetTrace(file) |
SetNetTrace(file) |
|
|
if (file && (strcmp(file, "-") != 0)) { |
if (file && (strcmp(file, "-") != 0)) { |
NetTrace = fopen(file, "w"); |
NetTrace = fopen(file, "w"); |
if (NetTrace) { |
if (NetTrace) { |
strcpy((char *)NetTraceFile, file); |
strlcpy((char *)NetTraceFile, file, sizeof(NetTraceFile)); |
return; |
return; |
} |
} |
fprintf(stderr, "Cannot open %s.\n", file); |
fprintf(stderr, "Cannot open %s.\n", file); |