[libc-commits] [PATCH] D107792: [libc] add strtoll function and backend

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Aug 10 10:57:57 PDT 2021


michaelrj added a comment.

I was planning on using `internal::strtoll` to implement `atoi` and friends, but I'm not sure what the additional errno argument you mentioned would do. The existing implementation of `atoi` gives errors in the same manner as `strtoll`, e.g. setting `errno` to `ERANGE` when passed a string that decodes to a number greater than 2^63.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107792/new/

https://reviews.llvm.org/D107792



More information about the libc-commits mailing list