Category : C Source Code
Archive   : SMTC130.ZIP
Filename : DSTR_I.DOC
NAME
dstr_i -- make an ascii decimal string into an integer
SYNOPSIS
c = dstr_i(p, r);
char *p;
int *r;
int c;
DESCRIPTION
Read a string of ascii decimal digits and create an integer
from the result. String must begin with a digit, +, or -.
Calculation proceeds to first non-ascii digit or NULL terminator.
Count of actual digits read is returned, and integer is placed
in specified destination. '-' sign as first character returns
integer negated.
EXAMPLE
char string[] = "1357";
int result;
int count;
count = dstr_i(string, &result);
count will equal 4
result will equal 1357
This function is found in SMTCx.LIB for the Turbo-C Compiler
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/