Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Implement the iswgraph() : C

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 09-02-2010
Member
 
Join Date: Dec 2009
Posts: 31
Implement the iswgraph() : C
  

Hello, I am the student of the Msc-IT. I had learned the C language in BscIT. I also have the good knowledge of the functions in C language. i have to submit the assignment on the iswgraph() function. So, I would like to know about the iswgraph() function. I would also like to know how can I Implement the iswgraph() function in C language. If there is anyone who can have the solution on the iswgraph() functions then reply me!!!

Reply With Quote
  #2  
Old 09-02-2010
Member
 
Join Date: Apr 2008
Posts: 1,947
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 ".
Reply With Quote
  #3  
Old 09-02-2010
Member
 
Join Date: May 2008
Posts: 2,006
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.
Reply With Quote
  #4  
Old 09-02-2010
Member
 
Join Date: Apr 2008
Posts: 1,999
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 ');
   }
}
Reply With Quote
  #5  
Old 09-02-2010
Member
 
Join Date: May 2008
Posts: 2,290
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 " );
    }
  }
Output :
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 01:47 AM.