DIR_SEPARATOR_S


Description:

[ CCode ( cname = "G_DIR_SEPARATOR_S" ) ]
public const string DIR_SEPARATOR_S

The directory separator as a string.

This is "/" on UNIX machines and "\" under Windows.

Example: Get the directory separator as string:

public static int main (string[] args) {
// Output: ``/``
print ("%s\n", Path.DIR_SEPARATOR_S);
return 0;
}

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

Namespace: GLib.Path
Package: glib-2.0



2022 vala-language.org