On Oct 11, 2010 at 15:19, Juha Heinanen <jh(a)tutpro.com> wrote:
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?
Both of them.
argv[i].u.string == argv[i].u.str.s (union)
argv[i].u.str.len is set if you don't use your own fixups (if you do,
the value is undefined).
Andrei