home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC.ZIP / SRCHPATH.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1020 b   |  38 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - srchpath.c
  3.  *
  4.  * function(s)
  5.  *        searchpath   - searches the DOS path
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1987, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #include <dir.h>
  18. #include <_dir.h>
  19.  
  20. /*-----------------------------------------------------------------------*
  21.  
  22. Name            searchpath - searches the DOS path
  23.  
  24. Usage           char *searchpath(const char *filename);
  25.  
  26. Prototype in    dir.h
  27.  
  28. Description     searchpath simply calls __searchpath to search the current
  29.                 directory and MS DOS path for filename.
  30.  
  31. Return value    see __searchpath in searchp.cas.
  32.  
  33. *------------------------------------------------------------------------*/
  34. char * _CType searchpath(const char *file)
  35. {
  36.         return __searchpath(file, _USEPATH);
  37. }
  38.