// gcc snprintf.c #include int main() { char buffer[10]; snprintf(buffer, 10, "Hallo %s!\n", "World"); return 0; }