source: vendor/glibc-tests/glibc/stdlib/tst-putenv.c

Last change on this file was 2036, checked in by bird, 20 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 273 bytes
Line 
1#include <stdio.h>
2#include <stdlib.h>
3
4static int
5do_test (void)
6{
7 char *p = getenv ("SOMETHING_NOBODY_USES");
8 if (p == NULL)
9 {
10 puts ("envvar not defined");
11 return 1;
12 }
13
14 return 0;
15}
16
17#define TEST_FUNCTION do_test ()
18#include "../test-skeleton.c"
Note: See TracBrowser for help on using the repository browser.