projects
/
cascardo
/
declara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adiciona macros para formatar valores em Real.
[cascardo/declara.git]
/
lib
/
util.h
diff --git
a/lib/util.h
b/lib/util.h
index
758d67b
..
754f5de
100644
(file)
--- a/
lib/util.h
+++ b/
lib/util.h
@@
-71,4
+71,7
@@
static inline int centavos(long long val)
return (int) (-val % 100LL);
}
+#define FMT_R "R$ %lld,%02d"
+#define R(l) reais(l), centavos(l)
+
#endif