MCPcopy Create free account
hub / github.com/IoLanguage/io / UArray_removeLastPathComponent

Function UArray_removeLastPathComponent

libs/basekit/source/UArray_path.c:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void UArray_removeLastPathComponent(UArray *self) {
31 long pos = UArray_findLastPathComponent(self);
32 if (pos)
33 pos--;
34 UArray_setSize_(self, pos);
35}
36
37void UArray_clipBeforeLastPathComponent(UArray *self) {
38 long pos = UArray_findLastPathComponent(self);

Callers 1

IoSeq_immutable.cFile · 0.85

Calls 2

UArray_setSize_Function · 0.85

Tested by

no test coverage detected