core: Add setenv.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 7 Apr 2018 07:21:51 +0000 (09:21 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 7 Apr 2018 07:21:51 +0000 (09:21 +0200)
commitbd82d5988db4f7cb56bf59d4013a7a7f3c5c619a
treed224c101972f109dd8d96554154596e2f0c32096
parent0fe6dc1f66cde7f3a5a7375072f7d24c8ef994f4
core: Add setenv.

* lib/libc.c (setenv): New function.
* include/stdlib.h (setenv): Declare it.
* scaffold/tests/61-array.c (test): Test it.
include/stdlib.h
lib/libc.c
scaffold/tests/61-array.c