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