Hi Pádraig,

Pádraig Brady <p...@draigbrady.com> writes:

> I always thought the x...() variants indicate they might eXit().
>
> Are there any other x...() variants that just output a diagnostic,
> and don't exit()?

Originally I felt the same way. Since I generally think about xmalloc,
xstrdup, which 99% of the time just exit or abort on error.

But there is already stuff like xstrtol and xsize that don't exit or
emit a diagnostic message. They just make it easier to catch errors;
which always annoys me with the regular strtol :)

Collin

Reply via email to