minor changes

This commit is contained in:
Michael Kerrisk 2006-04-20 21:56:03 +00:00
parent 22f348ca27
commit 0acd0e5775
1 changed files with 6 additions and 1 deletions

View File

@ -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);