Import bind 9.5.2 vendor sources.
[dragonfly.git] / contrib / bind-9.5.2 / lib / bind / bsd / putenv.c
blob2dcbc57e6ce61ced3f22cc9f2c0abe8870ae4b25
1 #ifndef LINT
2 static const char rcsid[] = "$Id: putenv.c,v 1.2 2005/04/27 04:56:11 sra Exp $";
3 #endif
5 #include "port_before.h"
6 #include "port_after.h"
8 /*%
9 * To give a little credit to Sun, SGI,
10 * and many vendors in the SysV world.
13 #if !defined(NEED_PUTENV)
14 int __bindcompat_putenv;
15 #else
16 int
17 putenv(char *str) {
18 char *tmp;
20 for (tmp = str; *tmp && (*tmp != '='); tmp++)
23 return (setenv(str, tmp, 1));
25 #endif
27 /*! \file */