Category : C Source Code
Archive   : CSRC2.ZIP
Filename : ISASCI.C

 
Output of file : ISASCI.C contained in archive : CSRC2.ZIP
/*
* i s a s c i . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title isascii Test for Ascii Character
index Test for Ascii character

synopsis
.s.nf
isascii(c);
int c;
.s.f
Description

Return non-zero if c is an Ascii character, zero otherwise.

Bugs

Ascii characters are in the range 000..127. Extended (8-bit)
Ascii is not supported.

#endif

#include
#ifdef isascii
#undef isascii
#endif

int
isascii(c)
unsigned int c;
{
return ((c <= 127));
}


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : ISASCI.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/