Inhaltsverzeichnis

ispunct()

#include <cctype>

int ispunct (int c) 

Ist c ein druckbares Zeichen außer Leerzeichen, Buchstaben und Ziffern?

Parameter

c Zeichen

Ergebnis

Rückgabewert: ungleich 0, falls das Zeichen dieser Gruppe angehört.

Siehe auch

<locale>, isalnum(), isalpha(), iscntrl(), isdigit(), isgraph(), islower(), isprint(), isspace(), isupper(), isxdigit().

Beispiel

ispunct.cpp
#include <cctype>
#include <iostream>
using namespace std;
 
int main()
{
  cout << "Satzzeichen: \n";
  for (int i=0; i<256; ++i)
  {
    if (ispunct(i))
    {
      cout << i << ' ' << char(i) << '\n';
    }    
  }
}