LibCore+LibC: Add wrapper for setenv

I also added a common interface with StringView compatible parameters:

int serenity_setenv(const char*, ssize_t, const char*, ssize_t, int)

This function is called by both C and C++ API for setenv().
This commit is contained in:
Lucas CHOLLET 2022-03-01 23:43:55 +01:00 committed by Andreas Kling
commit ddf9987c39
Notes: sideshowbarker 2024-07-17 18:03:20 +09:00
4 changed files with 26 additions and 3 deletions

View file

@ -33,6 +33,7 @@ int putenv(char*);
int unsetenv(const char*);
int clearenv(void);
int setenv(const char* name, const char* value, int overwrite);
int serenity_setenv(const char* name, ssize_t name_length, const char* value, ssize_t value_length, int overwrite);
const char* getprogname(void);
void setprogname(const char*);
int atoi(const char*);