Example: Quote a string

public static int main (string[] args) {
// Output: ``'my str'``
string quote = Shell.quote ("my str");
print ("%s\n", quote);
return 0;
}

 valac --pkg glib-2.0 GLib.Shell.quote.vala

See:




2022 vala-language.org