- printf - C++ Users
* printf example * #include <stdio h> int main() { printf ("Characters: %c %c \n", 'a', 65); printf ("Decimals: %d %ld\n", 1977, 650000L); printf ("Preceding with blanks: %10d \n", 1977); printf ("Preceding with zeros: %010d \n", 1977); printf ("Some different radices: %d %x %o %#x %#o \n", 100, 100, 100, 100, 100); printf ("floats: %4 2f
- printf(3) — Linux manual page - man7. org
Code such as printf(foo); often indicates a bug, since foo may contain a % character If foo comes from untrusted user input, it may contain %n , causing the printf () call to write to memory and creating a security hole
- printf(1) — Linux manual page - man7. org
Your shell may have its own version of printf, which usually supersedes the version described here Please refer to your shell's documentation for details about the options it supports AUTHOR top
|