home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / crt0 / c1pglob.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-21  |  299 b   |  16 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <libc/stubs.h>
  3. #include <crt0.h>
  4. #include <glob.h>
  5.  
  6. char **
  7. __crt0_glob_function(char *arg)
  8. {
  9.   char **rv;
  10.   glob_t g;
  11.   if (glob(arg, GLOB_NOCHECK, 0, &g) !=  0)
  12.     return 0;
  13.   rv = g.gl_pathv;
  14.   return rv;
  15. }
  16.