ISPUNCT |
Est-ce une ponctuation ? |
---|---|
Turbo C | ctype.h |
Syntaxe
int ispunct(int caractere); |
Paramètres
Nom | Description |
---|---|
caractere | Ce paramètre permet d'indiquer le caractère à vérifier |
Description
Cette fonction indique si le caractère est un signe de ponctuation (!,?,...).
Exemple
Voici un exemple permettant d'afficher les caractères de ponctuation (1) ou non (0) entre l'intervalle 32 et 127 :
on obtiendra le résultat suivant :
= 0, ! = 1, " = 1, # = 1, $ = 1, % = 1, & = 1, ' = 1, ( = 1, ) = 1, * = 1, + =1, , = 1, - = 1, . = 1, / = 1, 0 = 0, 1 = 0, 2 = 0, 3 = 0, 4 = 0, 5 = 0, 6 = 0,
7 = 0, 8 = 0, 9 = 0, : = 1, ; = 1, < = 1, = = 1, > = 1, ? = 1, @ = 1, A = 0, B
= 0, C = 0, D = 0, E = 0, F = 0, G = 0, H = 0, I = 0, J = 0, K = 0, L = 0, M = 0
, N = 0, O = 0, P = 0, Q = 0, R = 0, S = 0, T = 0, U = 0, V = 0, W = 0, X = 0, Y
= 0, Z = 0, [ = 1, \ = 1, ] = 1, ^ = 1, _ = 1, ` = 1, a = 0, b = 0, c = 0, d =
0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0, k = 0, l = 0, m = 0, n = 0, o = 0,
p = 0, q = 0, r = 0, s = 0, t = 0, u = 0, v = 0, w = 0, x = 0, y = 0, z = 0, { =
1, | = 1, } = 1, ~ = 1, ¦ = 0,
Dernière mise à jour : Samedi, le 4 juillet 2015