www.delorie.com/djgpp/doc/libc/libc_825.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

toascii

Syntax

 
#include <ctype.h>

int toascii(int c);

Description

This function strips the high bit of c, forcing it to be an ASCII character.

Return Value

The ASCII character.

Portability

ANSI/ISO C No
POSIX No

Example

 
for (i=0; buf[i]; i++)
  buf[i] = toascii(buf[i]);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004