Namespaces
Variants
Views
Actions

Null-terminated byte strings

From cppreference.com
< c‎ | string
Revision as of 18:26, 2 November 2012 by P12bot (Talk | contribs)

A null-terminated byte string (NTBS) is a sequence of nonzero bytes followed by a byte with value zero (the terminating null character). Each byte in a byte string encodes one character of some character set. For example, the character array {'\x63','\x61','\x74','\0'} is an NTBS holding the string "cat" in ASCII encoding.

Contents

Functions

Template:c/string/byte/dcl list isalnumTemplate:c/string/byte/dcl list isalphaTemplate:c/string/byte/dcl list islowerTemplate:c/string/byte/dcl list isupperTemplate:c/string/byte/dcl list isdigitTemplate:c/string/byte/dcl list isxdigitTemplate:c/string/byte/dcl list iscntrlTemplate:c/string/byte/dcl list isgraphTemplate:c/string/byte/dcl list isspaceTemplate:c/string/byte/dcl list isblankTemplate:c/string/byte/dcl list isprintTemplate:c/string/byte/dcl list ispunctTemplate:c/string/byte/dcl list tolowerTemplate:c/string/byte/dcl list toupper
Character classification
Defined in header <ctype.h>
Character manipulation
ASCII values
(hex)
characters

iscntrl
iswcntrl

isprint
iswprint

isspace
iswspace

isblank
iswblank

isgraph
iswgraph

ispunct
iswpunct

isalnum
iswalnum

isalpha
iswalpha

isupper
iswupper

islower
iswlower

isdigit
iswdigit

isxdigit
iswxdigit

0 - 8 0x00-0x08 control codes (NUL, etc.) ≠0 0 0 0 0 0 0 0 0 0 0 0
9 0x09 tab (\t) ≠0 0 ≠0 ≠0 0 0 0 0 0 0 0 0
10 - 13 0x0A-0x0D whitespaces (\n,\v,\f,\r) ≠0 0 ≠0 0 0 0 0 0 0 0 0 0
14 - 31 0x0E-0x1F control codes ≠0 0 0 0 0 0 0 0 0 0 0 0
32 0x20 space 0 ≠0 ≠0 ≠0 0 0 0 0 0 0 0 0
33 - 47 0x21-0x2F !"#$%&'()*+,-./ 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
48 - 57 0x30-0x39 0123456789 0 ≠0 0 0 ≠0 0 ≠0 0 0 0 ≠0 ≠0
58 - 64 0x3a-0x40 :;<=>?@ 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
65 - 70 0x41-0x46 ABCDEF 0 ≠0 0 0 ≠0 0 ≠0 ≠0 ≠0 0 0 ≠0
71 - 90 0x47-0x5A GHIJKLMNOPQRSTUVWXYZ 0 ≠0 0 0 ≠0 0 ≠0 ≠0 ≠0 0 0 0
91 - 96 0x5B-0x60 [\]^_` 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
97 -102 0x61-0x66 abcdef 0 ≠0 0 0 ≠0 0 ≠0 ≠0 0 ≠0 0 ≠0
103-122 0x67-0x7A ghijklmnopqrstuvwxyz 0 ≠0 0 0 ≠0 0 ≠0 ≠0 0 ≠0 0 0
123-126 0x7B-0x7E {|}~ 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
127 0x7F backspace character (DEL) ≠0 0 0 0 0 0 0 0 0 0 0 0
Template:c/string/byte/dcl list atofTemplate:c/string/byte/dcl list atoiTemplate:c/string/byte/dcl list strtolTemplate:c/string/byte/dcl list strtoulTemplate:c/string/byte/dcl list strtofTemplate:c/string/byte/dcl list strtoimaxTemplate:c/string/byte/dcl list strcpyTemplate:c/string/byte/dcl list strncpyTemplate:c/string/byte/dcl list strcatTemplate:c/string/byte/dcl list strncatTemplate:c/string/byte/dcl list strxfrmTemplate:c/string/byte/dcl list strlenTemplate:c/string/byte/dcl list strcmpTemplate:c/string/byte/dcl list strncmpTemplate:c/string/byte/dcl list strcollTemplate:c/string/byte/dcl list strchrTemplate:c/string/byte/dcl list strrchrTemplate:c/string/byte/dcl list strspnTemplate:c/string/byte/dcl list strcspnTemplate:c/string/byte/dcl list strpbrkTemplate:c/string/byte/dcl list strstrTemplate:c/string/byte/dcl list strtokTemplate:c/string/byte/dcl list memchrTemplate:c/string/byte/dcl list memcmpTemplate:c/string/byte/dcl list memsetTemplate:c/string/byte/dcl list memcpyTemplate:c/string/byte/dcl list memmoveTemplate:c/string/byte/dcl list strerror
Conversions to numeric formats
Defined in header <stdlib.h>
Defined in header <inttypes.h>
String manipulation
Defined in header <string.h>
String examination
Defined in header <string.h>
Character array manipulation
Defined in header <string.h>
Miscellaneous
Defined in header <string.h>