]>
diplodocus.org Git - nmh/blob - sbr/m_atoi.c
963d89e8845b3f0e7f867c57d6ba3818747cf210
2 * m_atoi.c -- Parse a string representation of a message number, and
3 * -- return the numeric value of the message. If the string
4 * -- contains any non-digit characters, then return 0.
6 * This code is Copyright (c) 2002, by the authors of nmh. See the
7 * COPYRIGHT file in the root directory of the nmh distribution for
8 * complete copyright information.
20 for (i
= 0, cp
= str
; *cp
; cp
++) {
21 if (!isdigit((unsigned char) *cp
))