[sr-dev] question about module function arguments

Juha Heinanen jh at tutpro.com
Mon Oct 11 14:19:20 CEST 2010


Andrei Pelinescu-Onciul writes:

> 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;
> }

are both argv[i].u.string and argv[i].u.str set or only the first?

-- juha



More information about the sr-dev mailing list