2025-01-07 22:16:31 +08:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
2025-01-08 17:04:10 +08:00
|
|
|
int cliteClearenv()
|
|
|
|
|
{
|
2025-01-07 22:16:31 +08:00
|
|
|
extern char **environ;
|
2025-01-08 17:04:10 +08:00
|
|
|
if (environ != NULL)
|
|
|
|
|
{
|
2025-01-07 22:16:31 +08:00
|
|
|
*environ = NULL;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-08 17:04:10 +08:00
|
|
|
int cliteErrno() { return errno; }
|