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.
9 * This code is Copyright (c) 2002, by the authors of nmh. See the
10 * COPYRIGHT file in the root directory of the nmh distribution for
11 * complete copyright information.
23 for (i = 0, cp = str; *cp; cp++) {
27 if (*cp < '0' || *cp > '9')