macro and text revision (-mdoc version 3)
[unix-history] / usr / src / lib / libc / stdlib / getenv.c
index 4965bc4..de323b2 100644 (file)
@@ -2,19 +2,16 @@
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.
  *
  * Copyright (c) 1987 Regents of the University of California.
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms are permitted
- * provided that this notice is preserved and that due credit is given
- * to the University of California at Berkeley. The name of the University
- * may not be used to endorse or promote products derived from this
- * software without specific prior written permission. This software
- * is provided ``as is'' without express or implied warranty.
+ * %sccs.include.redist.c%
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)getenv.c   5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)getenv.c   5.8 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 #endif /* LIBC_SCCS and not lint */
 
-#include <stdio.h>
+#include <stdlib.h>
+#include <stddef.h>
+#include <string.h>
 
 /*
  * getenv --
 
 /*
  * getenv --
@@ -22,7 +19,7 @@ static char sccsid[] = "@(#)getenv.c  5.4 (Berkeley) %G%";
  */
 char *
 getenv(name)
  */
 char *
 getenv(name)
-       char *name;
+       const char *name;
 {
        int offset;
        char *_findenv();
 {
        int offset;
        char *_findenv();