Function

GLibpath_skip_root

Declaration

const gchar*
g_path_skip_root (
  const gchar* file_name
)

Description

Returns a pointer into file_name after the root component, i.e. after the “/” in UNIX or “C:" under Windows. If file_name is not an absolute path it returns NULL.

Parameters

file_name const gchar*
 

A file name.

 The data is owned by the caller of the function.
 The string is a file system path, using the OS encoding.

Return value

Returns: filename
 

A pointer into file_name after the root component.

 The data is owned by the called function.
 The return value can be NULL.
 The string is a file system path, using the OS encoding.