Lines Matching defs:envptr
54 char *envptr; /* value returned by getenv */
62 if ((envptr = getenv(envstr)) != (char *)NULL) /* usual var */
63 while (ISspace(*envptr)) /* must discard leading spaces */
64 envptr++;
65 if (envptr == (char *)NULL || *envptr == '\0')
66 if ((envptr = getenv(envstr2)) != (char *)NULL) /* alternate var */
67 while (ISspace(*envptr))
68 envptr++;
69 if (envptr == (char *)NULL || *envptr == '\0')
72 bufptr = malloc(1 + strlen(envptr));
79 strcpy(bufptr, envptr);
82 OEM_TO_INTERN(envptr, bufptr);
86 OEM_TO_INTERN(envptr, bufptr);
89 strcpy(bufptr, envptr);