mirror of https://github.com/mkerrisk/man-pages
minor changes
This commit is contained in:
parent
22f348ca27
commit
0acd0e5775
|
@ -138,6 +138,11 @@ The first command line argument specifies a string from which
|
|||
should parse a number.
|
||||
The second (optional) argument specifies the base to be used for
|
||||
the conversion.
|
||||
(This argument is converted to numeric form using
|
||||
.BR atoi (3),
|
||||
a function that performs no error checking and
|
||||
has a simpler interface than
|
||||
.BR strtol ().)
|
||||
Some examples of the results produced by this program are the following:
|
||||
.in +0.25i
|
||||
.nf
|
||||
|
@ -197,7 +202,7 @@ main(int argc, char *argv[])
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* If we got here, strtol() sucessfully parsed a number */
|
||||
/* If we got here, strtol() successfully parsed a number */
|
||||
|
||||
printf("strtol() returned %ld\\n", val);
|
||||
|
||||
|
|
Loading…
Reference in New Issue