/* Copyright 1992 Mark W. Eichin. Covered by GPL V2. */
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
 * setenv --
 *	Set the value of the environmental variable "name" to be
 *	"value".  If rewrite is set, replace any current value.
 */
setenv(name, value, rewrite)
	register char *name, *value;
	int rewrite;
{
	char *combo = malloc(strlen(name)+strlen(value)+2);
	strcpy(combo,name);
	strcat(combo,"=");
	strcat(combo,value);
	putenv(combo);
}

/* unsetenv is never used; getenv is already supplied... */
