~ubuntu-branches/ubuntu/hardy/klibc/hardy-updates

« back to all changes in this revision

Viewing changes to klibc/getenv.c

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Bailey
  • Date: 2006-01-04 20:24:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060104202452-ec4v3n829rymukuv
Tags: 1.1.15-0ubuntu1
* New upstream version.

* Patch to fix compilation on parisc64 kernels.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  char **p, *q;
12
12
  int len = strlen(name);
13
13
 
 
14
  if ( !environ )
 
15
    return NULL;
 
16
 
14
17
  for ( p = environ ; (q = *p) ; p++ ) {
15
18
    if ( !strncmp(name, q, len) && q[len] == '=' ) {
16
19
      return q+(len+1);