|
clone :: proc(s: string, allocator := context.allocator, loc := #caller_location) -> (res: string, err: mem.Allocator_Error) #optional_allocator_error {
|
|
clone :: proc(s: string, allocator := context.allocator, loc := #caller_location) -> (res: string, err: mem.Allocator_Error) #optional_allocator_error {
|
|
c := make([]byte, len(s), allocator, loc) or_return
|
|
c := make([]byte, len(s), allocator, loc) or_return
|