3 ms·
Where is it documented that atoi wraps strtol?
by kazinator 1y ago
Where is it documented that atoi wraps strtol?
- rantouan 1y agohttps://www.gnu.org/savannah-checkouts/gnu/libc/index.html https://www.gnu.org/savannah-checkouts/gnu/libc/index.html : The project website can be found here: https://sourceware.org/glibc https://sourceware.org/glibc -> https://sourceware.org/ https://sourceware.org/ Links table on the left -> "GLIBC" button -> https://sourceware.org/glibc/ https://sourceware.org/glibc/ Top menu -> "sources" -> https://sourceware.org/glibc/sources.html https://sourceware.org/glibc/sources.html "gitweb" link -> https://sourceware.org/git/?p=glibc.git https://sourceware.org/git/?p=glibc.git Top menu -> "tree" link -> https://sourceware.org/git/?p=glibc.git;a=tree https://sourceware.org/git/?p=glibc.git;a=tree Tree -> "stdlib" link -> https://sourceware.org/git/?p=glibc.git;a=tree;f=stdlib;h=937b1980569a09daeb5369339fd4b40e3b2ede67;hb=HEAD 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=stdlib/atoi.c;hb=HEAD 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) ```