[alsa-devel] [PATCH 1/1] seq: arecordmidi: Add num-events option

Prashant Malani pmalani at chromium.org
Wed Jan 30 00:42:30 CET 2019


Interesting. Thanks for pointing that out, Clemens.

In any case, I've sent both versions (atoi v/s strtol), so whichever one is
preferred can be used (would be slightly inclined towards atoi, since it's
used elsewhere in the file, and because of Clemens' comment; additionally,
there is less code duplication with the atoi version).

Best regards,

On Tue, Jan 29, 2019 at 8:19 AM Clemens Ladisch <clemens at ladisch.de> wrote:

> Takashi Sakamoto wrote:
> > When parsing string with non-numeric characters, the behaviour of
> > atoi() is undefined still in C11.
>
> A completely non-numeric string is specified to return zero.
>
> The behaviour is undefined only if the value cannot be represented, i.e.,
> if it overflows.
>
>
> Regards,
> Clemens
>


More information about the Alsa-devel mailing list