printf


Description:

[ PrintfFormat ]
public void printf (string format, ...)

Example: Write a formatted string to the builder:

public static int main (string[] args) {
// Output: ``hello, world!``
StringBuilder builder = new StringBuilder ("foo bar foobar");
builder.printf ("%s,%s!\n", "hello", "world");
print (builder.str);
return 0;
}

valac --pkg glib-2.0 GLib.StringBuilder.printf.vala