[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
insistence that format string for printf to use single quotes
From: |
Hans Lonsdale |
Subject: |
insistence that format string for printf to use single quotes |
Date: |
Sat, 28 Jan 2023 02:37:37 +0100 (CET) |
A work mate is insisting that the format string string for printf should always
be enclosed by single quotes.
And that if I want variable data in my output from printf, I should insert a
format specifier in the format string
(e.g. %s) and supply the variable ("$var") as the argument corresponding that
format string.
Does such insistence has any basis?
--
Sent with https://mailfence.com
Secure and private email
- insistence that format string for printf to use single quotes,
Hans Lonsdale <=