Re:Ratatoi is a C libary that wraps stdlib's strtol (as atoi...
by kazinator on Wednesday May 21, 2025 @07:37PM
(#44057341)
Where is it documented that atoi wraps strtol?
[ Parent
| on HN ]
Re:Ratatoi is a C libary that wraps stdlib's strtol (as atoi...
by rantouan on Thursday May 22, 2025 @10:24AM
(#44062369)
https://www.gnu.org/savannah-checkouts/gnu/libc/index.html :
The project website can be found here: https://sourceware.org/glibc
->
https://sourceware.org/ Links table on the left -> "GLIBC" button
->
https://sourceware.org/glibc/ Top menu -> "sources"
->
https://sourceware.org/glibc/sources.html "gitweb" link
->
https://sourceware.org/git/?p=glibc.git Top menu -> "tree" link
->
https://sourceware.org/git/?p=glibc.git;a=tree Tree -> "stdlib" link
->
https://sourceware.org/git/?p=glibc.git;a=tree;f=stdlib;h=93... Tree -> "atoi.c" row -> "raw" link
->
https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=stdli...
``` /* Convert a string to an int. / int atoi (const char nptr) { return (int) strtol (nptr, (char *) NULL, 10); } libc_hidden_def (atoi) ```