Example: Skip the root component

public static int main (string[] args) {
// Output: ``my/absolute/path.txt``
string res = Path.skip_root ("/my/absolute/path.txt");
print ("%s\n", res);

// Output: ``(null)``
res = Path.skip_root ("../my/absolute/path.txt");
print ("%s\n", res);

// Output: ``(null)``
res = Path.skip_root ("./my/absolute/path.txt");
print ("%s\n", res);
return 0;
}

 valac --pkg glib-2.0 GLib.Path.skip_root.vala

See: