Return file name without extension.
TODO: Once slice are used everywhere and \0 is not assumed, this can be turned into a simple slicing.
file name
mem.xmalloc'd filename with extension removed.
See Implementation
Return file name without extension.
TODO: Once slice are used everywhere and \0 is not assumed, this can be turned into a simple slicing.