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

 
Output of file : ISPRIN.C contained in archive : CSRC2.ZIP
/*
* i s p r i n . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title isprint Test for Printable Character
index Test for printable character

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

Return non-zero if c is a printable character. The printable
characters include all graphics, including space. (See
isgraph(), also.)

Bugs

The value is defined only if isascii(c) is TRUE.

#endif

#include
#ifdef isprint
#undef isprint
#endif

int
isprint(c)
int c;
{
return (_ctype_[c & 0177] & ((_P | _U | _L | _D) | _B));
}


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : ISPRIN.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/