]>
diplodocus.org Git - nmh/blob - sbr/m_atoi.c
3 * m_atoi.c -- Parse a string representation of a message number, and
4 * -- return the numeric value of the message. If the string
5 * -- contains any non-digit characters, then return 0.
19 for (i
= 0, cp
= str
; *cp
; cp
++) {
23 if (*cp
< '0' || *cp
> '9')