-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide clearenv? #481
Comments
Certainly (at least for the first part). You would need to add bindings for As for the latter part, you would need to figure out (for each platform) how to implement |
|
I am thinking about implementing this feature, but I am not sure where to add the cleanenv () implementation. Are there any other functions concerning environment variables? |
Cool, it'd be great to implement this! If you look at the man page, you'll see that As to where to put these functions, we normally put functions into files following their location within And if you get stuck while writing code, I'd suggest submitting a draft PR (put [WIP] in the title if you don't want us to comment yet and are just running CI or the like) and we'll review it rather than continuing discussion here. |
Hello im planning to work on this functions. |
It can return an error, but doesn't set errno? Sounds a little useless. How would you diagnose the problem? Ahh, I see. It never actually returns anything but 0. Nonetheless, Rust prefers using |
Can clearenv() be supported, with a workaround of environ = NULL where it's not supported?
The text was updated successfully, but these errors were encountered: