File: getenv.c

package info (click to toggle)
sane-backends-extras 1.0.22.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,060 kB
  • sloc: ansic: 27,680; sh: 10,433; makefile: 495
file content (18 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (31)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "../include/sane/config.h"

#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 */