Q32991 _searchenv of File in Root Directory
C Compiler
5.00 5.10 | 5.10
MS-DOS    | OS/2

Summary:
   _searchenv will return an invalid pathname for a file in the
root directory when the current working directory is also the root
directory.
   Microsoft has confirmed this to be a problem in Versions 5.00 and
5.10 of the C compiler. We are researching this problem and will post
new information as it becomes available.

More Information:
   The following program demonstrates this problem; it should be run in
the root directory of your boot disk:

#include <dos.h>

main ()
{
  char path_buffer [40];

  _searchenv ("autoexec.bat", "PATH", path_buffer);
  printf ("path: %s\n", path_buffer);
}

   The following is the output (note the extra backslash in the path
name):

path: C:\\autoexec.bat



Keywords:  buglist 5.00 buglist5.10
Updated  88/07/29 12:16
