It checks if character has graphical representation and the characters with graphical representation are all those characters than can be printed (as determined by isprint) except the space character (' ').
DeclarationFollowing is the declaration for std::isgraph.
C++98int isgraph ( int c );C++11
int isgraph ( int c );Parameters
c − Character to be checked, casted to an int, or EOF.
Return ValueIt returns a value different from zero.
ExceptionsNo-throw guarantee − this function never throws exceptions.
ExampleIn below example for std::isgraph.
#include <stdio.h> #include <ctype.h> int main () { FILE * pFile; int c; pFile=fopen ("myfile.txt","r"); if (pFile) { do { c = fgetc (pFile); if (isgraph(c)) putchar (c); } while (c != EOF); fclose (pFile); } }
locale.htm
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4