diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 18:47:19 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 18:47:19 +0000 |
commit | e581c47f2e3cf668a5e0edd68d221064dc58f107 (patch) | |
tree | 0bcefbdd1fce0250e2e1eb3c8131cc4880000214 /pbx.c | |
parent | ca209244e27cf46c2eaeb137f8bf79308f4ffab7 (diff) |
add count to 'show functions' CLI command (issue #4991)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6351 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1124,12 +1124,14 @@ icky: static int handle_show_functions(int fd, int argc, char *argv[]) { struct ast_custom_function *acf; + int count_acf = 0; ast_cli(fd, "Installed Custom Functions:\n--------------------------------------------------------------------------------\n"); for (acf = acf_root ; acf; acf = acf->next) { ast_cli(fd, "%-20.20s %-35.35s %s\n", acf->name, acf->syntax, acf->synopsis); + count_acf++; } - ast_cli(fd, "\n"); + ast_cli(fd, "%d custom functions installed.\n", count_acf); return 0; } |