Logo Search packages:      
Sourcecode: ucspi-tcp version File versions  Download package

env.c

#include "str.h"
#include "env.h"

extern /*@null@*/char *env_get(char *s)
{
  int i;
  unsigned int len;

  if (!s) return 0;
  len = str_len(s);
  for (i = 0;environ[i];++i)
    if (str_start(environ[i],s) && (environ[i][len] == '='))
      return environ[i] + len + 1;
  return 0;
}

Generated by  Doxygen 1.6.0   Back to index