|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 313 (0x139) Types: TextFile Names: »m_atoi.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦3658e588a⟧ »EurOpenD3/mail/mh/mh-6.7.tar.Z« └─⟦c75e36ecb⟧ └─⟦this⟧ »mh-6.7/sbr/m_atoi.c«
/* m_atoi.c - parse a string representation of a message number */ #include "../h/mh.h" m_atoi (str) register char *str; { register int i; register char *cp; i = 0; cp = str; while (*cp) { if (*cp < '0' || *cp > '9') return 0; i *= 10; i += *cp++ - '0'; } return i; }