19 lines
199 B
C++
19 lines
199 B
C++
#include <stdlib.h>
|
|
#include <errno.h>
|
|
|
|
extern "C" {
|
|
|
|
int cliteClearenv()
|
|
{
|
|
extern char **environ;
|
|
if (environ != NULL)
|
|
{
|
|
*environ = NULL;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
int cliteErrno() { return errno; }
|
|
|
|
}
|