home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / LIBSRC.ZOO / libsrc / local / getenv.c < prev    next >
Text File  |  1992-02-16  |  244b  |  18 lines

  1. #define INCL_DOSMISC
  2. #include <os2.h>
  3.  
  4. ULONG Dos32ScanEnv() asm ("Dos32ScanEnv");
  5.  
  6. char *getenv (char *name)
  7. {
  8.    ULONG rc;
  9.    PSZ result;
  10.  
  11.    rc = Dos32ScanEnv (name, &result);
  12.  
  13.    if (rc) return (0);
  14.  
  15.    return (result);
  16. }
  17.  
  18.