add libpike and some main testing
This commit is contained in:
11
libpike/util/util.odin
Normal file
11
libpike/util/util.odin
Normal file
@@ -0,0 +1,11 @@
|
||||
package util
|
||||
|
||||
import "core:strings"
|
||||
|
||||
basename :: proc(path: string) -> string {
|
||||
idx := strings.last_index_byte(path, '/')
|
||||
if idx < 0 {
|
||||
return path
|
||||
}
|
||||
return path[idx+1:]
|
||||
}
|
||||
Reference in New Issue
Block a user