Results 1 to 5 of 5

Thread: Implement the iswgraph() : C

  1. #1
    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!!!

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    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. #3
    Join Date
    May 2008
    Posts
    2,012

    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. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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. #5
    Join Date
    May 2008
    Posts
    2,297

    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 04:35 PM.

Similar Threads

  1. How to implement sum() faster in c#?
    By Luis-Fernando in forum Software Development
    Replies: 4
    Last Post: 27-02-2010, 09:25 PM
  2. How can I implement the remove() in CPP
    By Servant in forum Software Development
    Replies: 5
    Last Post: 22-02-2010, 04:18 PM
  3. Implement the copy_backward() in C++
    By Agustíne in forum Software Development
    Replies: 5
    Last Post: 16-02-2010, 09:46 PM
  4. How to implement IP Sec
    By Enriquee in forum Technology & Internet
    Replies: 5
    Last Post: 12-01-2010, 06:28 AM
  5. Want to implement differentiation in C++
    By ADEN in forum Software Development
    Replies: 1
    Last Post: 25-10-2008, 06:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,259,174.70318 seconds with 17 queries