[ovs-discuss] Input argument to atoi

Ben Pfaff blp at nicira.com
Wed Sep 16 18:51:54 UTC 2015


On Tue, Sep 15, 2015 at 11:22 AM, neeraj mehta <mehtaneeraj07 at gmail.com> wrote:
> I was looking a the code in learn.c file. As per my understanding atoi
> function take const char * as an input argument. but in the below snippet
> value is passed as argument which is char *.

It's OK to pass a modifiable argument to a function that won't modify it.



More information about the discuss mailing list