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