[Click] input string in an handler
Eddie Kohler
kohler at cs.ucla.edu
Wed Jul 23 14:32:57 EDT 2008
Rémi,
Can you please send a complete write handler function? I can't replicate this
problem. Are you sure that args[5] exists (that args.size() >= 6)?
Eddie
remi.clavier at orange-ftgroup.com wrote:
> I experience without proble to input (and verify) integer and long values in a write handler.
> But now, I'm not able to read a string.
> Each try solve by a "segmentation fault".
> It's a exemple to do that...
> Somthing like in a tatic function of the handler)
>
> cp
> String s;
> if (!cp_string(args[5],&s){return errh->error("unable to read the parameter number 4");
> ... Use s String
>
> Thanks
>
> Rémi
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list