delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/16/00:27:52

From: Keetnet AT wilmington DOT net (Keet / Foxbird)
Subject: Strange things...
16 Mar 1998 00:27:52 -0800 :
Message-ID: <3.0.32.19980314103340.007b5380.cygnus.gnu-win32@wilmington.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Well, in response to my previous message, and with no help from very very
few, I debuged my program the old fashioned way. Putting 'fprintf(stderr,
"Line 1")' every so often in the code so I could see where the problem
arose and I found the culprit. The program reads a value from the
environment and then copies it into a string. But I suspect that GETENV
returns a null, and when it's passed to strncpy it decides to go belly up.
I'm not sure if GETENV is supposed to return an empty string or a null? Any
help on this one?

- Greg


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019