|
| ||||||||||
| Tags: c language, function, graphics, iswgraph |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Implement the iswgraph() : C
|
|
#2
| ||||
| ||||
| The iswgraph() : C
Hi, how are you!!! The iswgraph function can be the equivalent to the wide-character of that of the isgraph() function. The iswgraph() function can the checks that whether the variable that can be declared as argument of the iswgraph()function, can be the wide character that is belonging to the " graph " class of the wide character. The class " graph " that can be of the wide character, can be a subclass of the class " print ". |
|
#3
| |||
| |||
| Implement the iswgraph()
The iswgraph() function can return the zero, if the argument of the iswgraph() function can not be a wide-character code. The iswgraph() function can return the non zero, if the argument of the iswgraph() function can be a wide-character code. The following can be the common errors that can fails the iswgraph() function : 1. EINVAL : Locale can not a valid locale object handle. |
|
#4
| ||||
| ||||
| Program : iswgraph()
The following sample program can helps you to learn more about the iswgraph() function and how can you able to implement the iswgraph() function in the program : Code: #include <stdio.h>
#include <wctype.h>
int main(void)
{
int CH;
for (CH=0; CH <= 0xFF; CH++) {
printf("%3d", CH);
printf(" %#4x ", CH);
printf("%2s", iswgraph(CH) ? "G" : " ");
putchar(' \n ');
}
} |
|
#5
| ||||
| ||||
| The iswgraph() : Code Program : Code: #include <stdio.h>
#include <wctype.h>
char chr[] = {'B', 0x09, ' ', 0x7d};
#define SIZE sizeof( chr ) / sizeof( chr )
void main()
{
int j;
for( j = 0; j < SIZE; j++ ) {
printf( "Char %c is %sa printable character\n",
chr[j],
( iswgraph( chr[j] ) ) ? "" : "not " );
}
} Code: Char B is a printable character Char is not a printable character Char is not a printable character Char } is a printable character Last edited by Zecho : 09-02-2010 at 03:35 PM. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Implement the iswgraph() : C" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to implement sum() faster in c#? | Luis-Fernando | Software Development | 4 | 27-02-2010 08:25 PM |
| How can I implement the remove() in CPP | Servant | Software Development | 5 | 22-02-2010 03:18 PM |
| Implement the copy_backward() in C++ | Agustíne | Software Development | 5 | 16-02-2010 08:46 PM |
| How to implement IP Sec | Enriquee | Technology & Internet | 5 | 12-01-2010 05:28 AM |
| Want to implement differentiation in C++ | ADEN | Software Development | 1 | 25-10-2008 06:13 PM |