]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - contrib/bind9/lib/bind/bsd/putenv.c
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / contrib / bind9 / lib / bind / bsd / putenv.c
1 #ifndef LINT
2 static const char rcsid[] = "$Id: putenv.c,v 1.1.352.1 2005/04/27 05:00:43 sra Exp $";
3 #endif
4
5 #include "port_before.h"
6 #include "port_after.h"
7
8 /*%
9  * To give a little credit to Sun, SGI,
10  * and many vendors in the SysV world.
11  */
12
13 #if !defined(NEED_PUTENV)
14 int __bindcompat_putenv;
15 #else
16 int
17 putenv(char *str) {
18         char *tmp;
19
20         for (tmp = str; *tmp && (*tmp != '='); tmp++)
21                 ;
22
23         return (setenv(str, tmp, 1));
24 }
25 #endif
26
27 /*! \file */