TOASCII(3) BSD Library Functions Manual TOASCII(3)NAME
toascii -- convert a byte to 7-bit ASCII
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <ctype.h>
int
toascii(int c);
DESCRIPTION
The toascii() function returns the argument with all but the lower 7 bits cleared.
RETURN VALUES
The toascii() function always returns a valid ASCII character. The result is a non-negative integer in the range from 0 to 127, inclusive.
SEE ALSO ctype(3), isalnum(3), isalpha(3), isascii(3), iscntrl(3), isdigit(3), isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3),
isxdigit(3), stdio(3), tolower(3), toupper(3), ascii(7)STANDARDS
The toascii() function conforms to X/Open Portability Guide Issue 4 (``XPG4'') and IEEE Std 1003.1-2001 (``POSIX.1''). The IEEE Std
1003.1-2008 (``POSIX.1'') revision however marked it as obsolete, noting that toascii() cannot be used portably in a localized application.
BSD April 30, 2010 BSD
Check Out this Related Man Page
CTYPE(3) BSD Library Functions Manual CTYPE(3)NAME
digittoint, isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, ishexnumber, isideogram, islower, isnumber, isphonogram, isprint,
ispunct, isrune, isspace, isspecial, isupper, isxdigit, toascii, tolower, toupper -- character classification functions
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <ctype.h>
int
digittoint(int c);
int
isalnum(int c);
int
isalpha(int c);
int
isascii(int c);
int
iscntrl(int c);
int
isdigit(int c);
int
isgraph(int c);
int
ishexnumber(int c);
int
isideogram(int c);
int
islower(int c);
int
isnumber(int c);
int
isphonogram(int c);
int
isspecial(int c);
int
isprint(int c);
int
ispunct(int c);
int
isrune(int c);
int
isspace(int c);
int
isupper(int c);
int
isxdigit(int c);
int
toascii(int c);
int
tolower(int c);
int
toupper(int c);
DESCRIPTION
The above functions perform character tests and conversions on the integer c. They are available as macros, defined in the include file
<ctype.h>, or as true functions in the C library. See the specific manual pages for more information.
SEE ALSO digittoint(3), isalnum(3), isalpha(3), isascii(3), isblank(3), iscntrl(3), isdigit(3), isgraph(3), isideogram(3), islower(3), isphonogram(3),
isprint(3), ispunct(3), isrune(3), isspace(3), isspecial(3), isupper(3), isxdigit(3), toascii(3), tolower(3), toupper(3), wctype(3), ascii(7)STANDARDS
These functions, except for digittoint(), isascii(), ishexnumber(), isideogram(), isnumber(), isphonogram(), isrune(), isspecial() and
toascii(), conform to ISO/IEC 9899:1990 (``ISO C90'').
BSD March 30, 2004 BSD
Hi friend:
There are some questions I wish you could help me.
How do I transfer Postscript version file to Flat ASCII text file?
I want to use C to do this work. Are there any source code to
do this work?
Are there any tools used in windows enviroment to see Postscript version file?
thank... (1 Reply)
Here at the agency I work for, a need has arisen for a subdomain that utilizes some unicode characters. It has something to do with our foreign clients getting "page could not be displayed" errors in their internationalized browsers. I am still investigating the issue, but I've been asked to find... (2 Replies)
Hi,
I tried creating my version of the cat function in bash but left it and now I'm trying to make this function work, but it wouldn't.
#include <sys/param.h>
#include <sys/stat.h>
#include <locale.h>
#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>... (2 Replies)
On my *nix box, I have a telegram program.
When I go like
tel person "la\nla\nla\n"
the person sees
"la\nla\nla\n"
However, when I have a program that forks and execs tel like:
pid = fork();
if (pid < 0) {
perror("fork failed");
exit(EXIT_FAILURE);
}
if (pid == 0) {... (7 Replies)
i want to convert Hex value To EBCDIC value.
i tried to convert hex to ascii and then to ebcdic but it doesn't give desired results .
it doesn't give corresponding ebcdic value instead it gives some junk values.
e.g;
Hex EBCDIC
-----------------
81 a
82 b
83 c
84 d
85 e
86 f
87... (6 Replies)
i m unable to extract data from one text files to different text files..i am able to concat two text files in d same file
---------- Post updated at 03:21 PM ---------- Previous update was at 03:16 PM ----------
i want a c program for it (2 Replies)
Hi Guru,
I have put one post yesterday and get answer. thanks for your help.
my question today is: what is ascii character for following non printable characters: ( we need filter these characters out in another process)
^MM-^E^MM-^E.
Old post link: ... (5 Replies)
So I'm looking into using BASH on this windows 7 machine. I've installed cygwin with a few optional bash installations but I don't know how to get bash to "work". I've opened the .exe and typed what few commands I understand from the tutorials I've found but some of the commands do not work. I... (10 Replies)
I need to split the file based on pattern from position 34-37 while retaining the header and trailer records in each individual split file
Also is it possible to output the TOM and PAT records in the same output file ?
I need the output file names same as xyz_pattern_Datetimestamp.txt
... (23 Replies)