[sr-dev] question about module function arguments

Juha Heinanen jh at tutpro.com
Mon Oct 11 13:55:51 CEST 2010


andrei,

one question regarding this:

> static int foo_var(struct sip_msg* msg, int argc, action_u_t argv[])
> {
>     int i;
>     for (i = 0; i < argc; i++)
>         do_something(argv[i].u.string);
>     return 1;
> }

what is value of argc if there is no params? why argc tells the number
of params - 1 rather than the number of params?

-- juha



More information about the sr-dev mailing list