mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Update core/os/os_openbsd.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
This commit is contained in:
co-authored by
Laytan
parent
568705069c
commit
18fd1fefc3
@@ -807,6 +807,7 @@ get_env :: proc(key: string, allocator := context.allocator) -> (value: string)
|
|||||||
|
|
||||||
@(require_results)
|
@(require_results)
|
||||||
get_current_directory :: proc(allocator := context.allocator) -> string {
|
get_current_directory :: proc(allocator := context.allocator) -> string {
|
||||||
|
context.allocator = allocator
|
||||||
buf := make([dynamic]u8, MAX_PATH)
|
buf := make([dynamic]u8, MAX_PATH)
|
||||||
for {
|
for {
|
||||||
cwd := _unix_getcwd(cstring(raw_data(buf)), c.size_t(len(buf)))
|
cwd := _unix_getcwd(cstring(raw_data(buf)), c.size_t(len(buf)))
|
||||||
|
|||||||
Reference in New Issue
Block a user