Top "Printf" questions

`printf` is a common function for formatted output.

find lacks the option -printf, now what?

I have not found a reason why Mac's find does not have the option -printf. Apple normally decides to take …

macos find printf
How to print hex from uint32_t?

The code I have been working on requires that I print a variable of type uint32_t in hexadecimal, with …

c++ c printf unsigned uint32-t
How to fdopen as open with the same mode and flags?

I would like to have a FILE* type to use fprintf. I need to use fdopen to get a FILE* …

c file-io printf fdopen
How to print a string using printf without it printing the trailing newline

I'm trying to print some strings using printf() but they are null terminated having trailing newline and that messes with …

c string printf null-terminated
Python's many ways of string formatting — are the older ones (going to be) deprecated?

Python has at least six ways of formatting a string: In [1]: world = "Earth" # method 1a In [2]: "Hello, %s" % world Out[2]: …

python printf string-formatting deprecated backwards-compatibility
warning: format ‘%x’ expects argument of type ‘unsigned int’

When I try and compile this I get the following error, not sure why... warning: format ‘%x’ expects argument of …

c printf format-specifiers
How to print a parenthesis in C with printf?

I am trying to print a parenthesis using: printf("\)"); However, it is giving me the following warning: warning: unknown escape …

c printing compiler-errors printf printf-debugging
System.out.printf vs System.out.format

Are System.out.printf and System.out.format totally the same or perhaps they differ in somehow?

java format printf
Displaying wide chars with printf

I'm trying to understand how does printf work with wide characters (wchar_t). I've made the following code samples : Sample 1 : #…

c encoding printf widechar
How does printf and co differentiate between float and double

Since it isn't strongly typed I thought it just picked the right memory size and interpreted it based on the …

c floating-point printf