diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-11-11 11:03:39 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-11-14 11:09:48 +0100 |
commit | adf769078cd85b57bc95da528609c95118e9e955 (patch) | |
tree | c3629220b055f33946a6e8e3e079eb1719c34cff /src/utils.c | |
parent | 6b95f7b67dc8e29072fed4e05efa450422661348 (diff) | |
download | calcurse-adf769078cd85b57bc95da528609c95118e9e955.zip |
src/utils.c: Support printing '%' in format strings
This allows using "%%" to print the '%' character.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index 21190f0..fa4cefe 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1045,6 +1045,9 @@ print_apoint (const char *format, long day, struct apoint *apt) case 'N': print_notefile (stdout, apt->note, 1); break; + case '%': + putchar ('%'); + break; case '\0': return; break; @@ -1079,6 +1082,9 @@ print_event (const char *format, long day, struct event *ev) case 'N': print_notefile (stdout, ev->note, 1); break; + case '%': + putchar ('%'); + break; case '\0': return; break; @@ -1143,6 +1149,9 @@ print_todo (const char *format, struct todo *todo) case 'N': print_notefile (stdout, todo->note, 1); break; + case '%': + putchar ('%'); + break; case '\0': return; break; |