1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: cleanup os.environ implementation

This commit is contained in:
Delyan Angelov
2021-04-06 18:00:42 +03:00
parent 1e2a92945c
commit db84d5e221
2 changed files with 14 additions and 12 deletions

View File

@@ -52,6 +52,10 @@ pub fn ptr_str(ptr voidptr) string {
return buf1
}
pub fn (cptr &char) str() string {
return u64(cptr).hex()
}
const (
digit_pairs = '00102030405060708090011121314151617181910212223242526272829203132333435363738393041424344454647484940515253545556575859506162636465666768696071727374757677787970818283848586878889809192939495969798999'
)