널(Null)문자로 끝나는 바이트 문자열
cppreference.com
< c
널(null)문자로 끝나는 바이트 문자열(NTBS; null-terminated byte string)은 0이 아닌 바이트의 연속 시퀀스뒤에 0(널 종단문자)으로 끝난다. 바이트 문자열에서 각 바이트는 특정 문자 집합의 한 문자에 해당한다. 예를 들어 문자 배열 {'\x63','\x61','\x74','\0'}은 틀:lt 인코딩에서 "cat" 문자열을 저장하는 널 종료 바이트 문자열이다..
목차 |
[편집] Functions
Character classification | |
<ctype.h> 헤더에 정의됨. | |
checks if a character is alphanumeric (function) | |
checks if a character is alphabetic (function) | |
checks if a character is lowercase (function) | |
checks if a character is an uppercase character (function) | |
checks if a character is a digit (function) | |
checks if a character is a hexadecimal character (function) | |
checks if a character is a control character (function) | |
checks if a character is a graphical character (function) | |
checks if a character is a space character (function) | |
(C99) |
checks if a character is a blank character (function) |
checks if a character is a printing character (function) | |
checks if a character is a punctuation character (function) | |
Character manipulation | |
converts a character to lowercase (function) | |
converts a character to uppercase (function) |
Note: additional functions whose names begin with either to
or is
, followed by a lowercase letter, may be added to the header ctype.h
in future and should not be defined by programs that include that header.
Conversions to and from numeric formats | |
<stdlib.h> 헤더에 정의됨. | |
바이트 문자열을 부동소수값으로 변환 (function) | |
바이트 문자열을 정수 값으로 변환 (function) | |
바이트 문자열을 정수 값으로 변환 (function) | |
converts a byte string to an unsigned integer value (function) | |
converts a byte string to a floating point value (function) | |
<inttypes.h> 헤더에 정의됨. | |
(C99) (C99) |
converts a byte string to intmax_t or uintmax_t (function) |
String manipulation | |
<string.h> 헤더에 정의됨. | |
copies one string to another (function) | |
copies a certain amount of characters from one string to another (function) | |
concatenates two strings (function) | |
concatenates a certain amount of characters of two strings (function) | |
converts a substring so that it can be used by string comparison functions (function) | |
String examination | |
<string.h> 헤더에 정의됨. | |
returns the length of a given string (function) | |
compares two strings (function) | |
compares a certain amount of characters of two strings (function) | |
compares two strings in accordance to the current locale (function) | |
finds the first occurrence of a character (function) | |
finds the last occurrence of a character (function) | |
returns the length of the maximum initial segment that consists of only the characters found in another byte string (function) | |
returns the length of the maximum initial segment that consists of only the characters not found in another byte string (function) | |
finds the first location of any character in one string, in another string (function) | |
finds the first occurrence of a substring of characters (function) | |
finds the next token in a byte string (function) | |
Character array manipulation | |
<string.h> 헤더에 정의됨. | |
searches an array for the first occurrence of a character (function) | |
compares two buffers (function) | |
fills a buffer with a character (function) | |
copies one buffer to another (function) | |
moves one buffer to another (function) | |
Miscellaneous | |
<string.h> 헤더에 정의됨. | |
returns a text version of a given error code (function) |
[편집] References
- C23 standard (ISO/IEC 9899:2023):
- 7.4 Character handling <ctype.h> (p: TBD)
- 7.8 Format conversion of integer types <inttypes.h> (p: TBD)
- 7.22 General utilities <stdlib.h> (p: TBD)
- 7.24 String handling <string.h> (p: TBD)
- 7.31.2 Character handling <ctype.h> (p: TBD)
- 7.31.5 Format conversion of integer types <inttypes.h> (p: TBD)
- 7.31.12 General utilities <stdlib.h> (p: TBD)
- 7.31.13 String handling <string.h> (p: TBD)
- K.3.6 General utilities <stdlib.h> (p: TBD)
- K.3.7 String handling <string.h> (p: TBD)
- C17 standard (ISO/IEC 9899:2018):
- 7.4 Character handling <ctype.h> (p: TBD)
- 7.8 Format conversion of integer types <inttypes.h> (p: TBD)
- 7.22 General utilities <stdlib.h> (p: TBD)
- 7.24 String handling <string.h> (p: TBD)
- 7.31.2 Character handling <ctype.h> (p: TBD)
- 7.31.5 Format conversion of integer types <inttypes.h> (p: TBD)
- 7.31.12 General utilities <stdlib.h> (p: TBD)
- 7.31.13 String handling <string.h> (p: TBD)
- K.3.6 General utilities <stdlib.h> (p: TBD)
- K.3.7 String handling <string.h> (p: TBD)
- C11 standard (ISO/IEC 9899:2011):
- 7.4 Character handling <ctype.h> (p: 200-204)
- 7.8 Format conversion of integer types <inttypes.h> (p: 217-220)
- 7.22 General utilities <stdlib.h> (p: 340-360)
- 7.24 String handling <string.h> (p: 362-372)
- 7.31.2 Character handling <ctype.h> (p: 455)
- 7.31.5 Format conversion of integer types <inttypes.h> (p: 455)
- 7.31.12 General utilities <stdlib.h> (p: 456)
- 7.31.13 String handling <string.h> (p: 456)
- K.3.6 General utilities <stdlib.h> (p: 604-613)
- K.3.7 String handling <string.h> (p: 614-623)
- C99 standard (ISO/IEC 9899:1999):
- 7.4 Character handling <ctype.h> (p: 181-185)
- 7.8 Format conversion of integer types <inttypes.h> (p: 198-201)
- 7.20 General utilities <stdlib.h> (p: 306-324)
- 7.21 String handling <string.h> (p: 325-334)
- 7.26.2 Character handling <ctype.h> (p: 401)
- 7.26.4 Format conversion of integer types <inttypes.h> (p: 401)
- 7.26.10 General utilities <stdlib.h> (p: 402)
- 7.26.11 String handling <string.h> (p: 402)
- C89/C90 standard (ISO/IEC 9899:1990):
- 4.3 CHARACTER HANDLING <ctype.h>
- 4.10 GENERAL UTILITIES <stdlib.h>
- 4.11 STRING HANDLING <string.h>
- 4.13.2 Character handling <ctype.h>
- 4.13.7 General utilities <stdlib.h>
- 4.13.8 String handling <string.h>
[편집] See also
C++ documentation for
Null -terminated byte strings |