diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-18 20:08:17 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-18 20:08:17 +0000 |
commit | 34f862cfb9e23cd2d2e538682d93ced11441f774 (patch) | |
tree | 0b225263da446cd3512b9f0338aa6052dd76e6e2 /res/res_realtime.c | |
parent | ed3d16c4d0c38bc0742880e468c41c802c03b367 (diff) |
Move this macro from cli.c to cli.h so apps can use it
without duplicating the macro or the code:
/*!
* In many cases we need to print singular or plural
* words depending on a count. This macro helps us e.g.
* printf("we have %d object%s", n, ESS(n));
*/
#define ESS(x) ((x) == 1 ? "" : "s")
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47827 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_realtime.c')
0 files changed, 0 insertions, 0 deletions