sane-project-backends/lib/getenv.c

19 wiersze
308 B
C
Czysty Zwykły widok Historia

#include "../include/sane/config.h"
2000-08-12 15:11:46 +00:00
#ifndef HAVE_GETENV
char *
getenv(const char *name)
{
char *retval = 0;
#ifdef HAVE_OS2_H
if (0 != DosScanEnv (buf, &retval))
retval = 0;
#else
# error "Missing getenv() on this platform. Please implement."
#endif
return retval;
}
#endif /* !HAVE_GETENV */