C string handling

From Wikipedia, the free encyclopedia
(Redirected from Strchr)

Script error: No such module "other uses". Template:Short description Script error: No such module "Unsubst". Template:C Standard Library

The C programming language has a set of functions implementing operations on strings (character strings and byte strings) in its standard library. Various operations, such as copying, concatenation, tokenization and searching are supported. For character strings, the standard library uses the convention that strings are null-terminated: a string of n characters is represented as an array of n + 1Script error: No such module "Check for unknown parameters". elements, the last of which is a "Template:Tt character" with numeric value 0.

The only support for strings in the programming language proper is that the compiler translates quoted string constants into null-terminated strings.

Definitions

A string is defined as a contiguous sequence of code units terminated by the first zero code unit (often called the NUL code unit).[1] This means a string cannot contain the zero code unit, as the first one seen marks the end of the string. The length of a string is the number of code units before the zero code unit.[1] The memory occupied by a string is always one more code unit than the length, as space is needed to store the zero terminator.

Generally, the term string means a string where the code unit is of type char, which is exactly 8 bits on all modern machines. C90 defines wide strings[1] which use a code unit of type wchar_t, which is 16 or 32 bits on modern machines. This was intended for Unicode but it is increasingly common to use UTF-8 in normal strings for Unicode instead.

Strings are passed to functions by passing a pointer to the first code unit. Since char* and wchar_t* are different types, the functions that process wide strings are different than the ones processing normal strings and have different names.

String literals ("text" in the C source code) are converted to arrays (char[] in C, or const char[] in C++) during compilation.[2] The result is an array of code units containing all the characters plus a trailing zero code unit. In C90 L"text" produces a wide string. A string literal can contain the zero code unit (one way is to put \0 into the source), but this will cause the string to end at that point. The rest of the literal will be placed in memory (with another zero code unit added to the end) but it is impossible to know those code units were translated from the string literal, therefore such source code is not a string literal.[3]

Character encodings

Each string ends at the first occurrence of the zero code unit of the appropriate kind (char or wchar_t). Consequently, a byte string (char*) can contain non-NUL characters in ASCII or any ASCII extension, but not characters in encodings such as UTF-16 (even though a 16-bit code unit might be nonzero, its high or low byte might be zero). The encodings that can be stored in wide strings are defined by the width of wchar_t. In most implementations, wchar_t is at least 16 bits, and so all 16-bit encodings, such as UCS-2, can be stored. If wchar_t is 32-bits, then 32-bit encodings, such as UTF-32, can be stored. (The standard requires a "type that holds any wide character", which on Windows no longer holds true since the UCS-2 to UTF-16 shift. This was recognized as a defect in the standard and fixed in C++.)[4] C++11 and C11 add two types with explicit widths char16_t and char32_t.[5]

Variable-width encodings can be used in both byte strings and wide strings. String length and offsets are measured in bytes or wchar_t, not in "characters", which can be confusing to beginning programmers. UTF-8 and Shift JIS are often used in C byte strings, while UTF-16 is often used in C wide strings when wchar_t is 16 bits. Truncating strings with variable-width characters using functions like strncpy can produce invalid sequences at the end of the string. This can be unsafe if the truncated parts are interpreted by code that assumes the input is valid.

Support for Unicode literals such as char foo[512] = "φωωβαρ"; (UTF-8) or wchar_t foo[512] = L"φωωβαρ"; (UTF-16 or UTF-32, depends on wchar_t) is implementation defined,[6] and may require that the source code be in the same encoding, especially for char where compilers might just copy whatever is between the quotes. Some compilers or editors will require entering all non-ASCII characters as \xNN sequences for each byte of UTF-8, and/or \uNNNN for each word of UTF-16. Since C11 (and C++11), a new literal prefix u8 is available that guarantees UTF-8 for a bytestring literal, as in char foo[512] = u8"φωωβαρ";.[7] Since C++20 and C23, a char8_t type was added that is meant to store UTF-8 characters and the types of u8 prefixed character and string literals were changed to char8_t and char8_t[] respectively.

Features

Terminology

In historical documentation the term "character" was often used instead of "byte" for C strings, which leads manyScript error: No such module "Unsubst". to believe that these functions somehow do not work for UTF-8. In fact all lengths are defined as being in bytes and this is true in all implementations, and these functions work as well with UTF-8 as with single-byte encodings. The BSD documentation has been fixed to make this clear, but POSIX, Linux, and Windows documentation still uses "character" in many places where "byte" or "wchar_t" is the correct term.

Functions for handling memory buffers can process sequences of bytes that include null-byte as part of the data. Names of these functions typically start with mem, as opposite to the str prefix.

Headers

Most of the functions that operate on C strings are declared in the string.h header (cstring in C++), while functions that operate on C wide strings are declared in the wchar.h header (cwchar in C++). These headers also contain declarations of functions used for handling memory buffers; the name is thus something of a misnomer.

Functions declared in string.h are extremely popular since, as a part of the C standard library, they are guaranteed to work on any platform which supports C. However, some security issues exist with these functions, such as potential buffer overflows when not used carefully and properly, causing the programmers to prefer safer and possibly less portable variants, out of which some popular ones are listed below. Some of these functions also violate const-correctness by accepting a const string pointer and returning a non-const pointer within the string. To correct this, some have been separated into two overloaded functions in the C++ version of the standard library.

Constants and types

Name Notes
Page Template:Mono/styles.css has no content.NULL Macro expanding to the null pointer constant; that is, a constant representing a pointer value which is guaranteed not to be a valid address of an object in memory.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wchar_t Type used for a code unit in "wide" strings. The C standard only requires that Page Template:Mono/styles.css has no content.wchar_t be wide enough to hold the widest character set among the supported system locales[8] and be greater or equal in size to Page Template:Mono/styles.css has no content.char.[9] On Windows, the only platform to use Page Template:Mono/styles.css has no content.wchar_t extensively, it's defined as 16-bit[10] which was enough to represent any Unicode (UCS-2) character, but is now only enough to represent a UTF-16 code unit, which can be half a code point. On other platforms it is defined as 32-bit and a Unicode code point always fits. This difference makes code using Page Template:Mono/styles.css has no content.wchar_t non-portable.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wint_t Integer type that can hold any value of a wchar_t as well as the value of the macro WEOF. Usually a 32 bit signed value.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.char8_t[11] Part of the C standard since C23, in Page Template:Mono/styles.css has no content.<uchar.h>, a type that is suitable for storing UTF-8 characters.[12]
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.char16_t[13] Part of the C standard since C11,[14] in Page Template:Mono/styles.css has no content.<uchar.h>, a type capable of holding 16 bits even if Page Template:Mono/styles.css has no content.wchar_t is another size. If the macro __STDC_UTF_16__ is defined as 1, the type is used for UTF-16 on that system. This is always the case in C23.[15] C++ does not define such a macro, but the type is always used for UTF-16 in that language.[16]
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.char32_t[13] Part of the C standard since C11,[17] in Page Template:Mono/styles.css has no content.<uchar.h>, a type capable of holding 32 bits even if Page Template:Mono/styles.css has no content.wchar_t is another size. If the macro __STDC_UTF_32__ is defined as 1, the type is used for UTF-32 on that system. This is always the case in C23.[15] C++ does not define such a macro, but the type is always used for UTF-32 in that language.[16]
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbstate_t Contains all the information about the conversion state required from one call to a function to the other.

Functions

Byte
string
Wide
string
Description[note 1]
String
manipulation
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strcpy[18] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcscpy[19] Copies one string to another
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strncpy[20] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcsncpy[21] Writes exactly n bytes, copying from source or adding nulls
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strcat[22] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcscat[23] Appends one string to another
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strncat[24] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcsncat[25] Appends no more than n bytes from one string to another
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strxfrm[26] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcsxfrm[27] Transforms a string according to the current locale
String
examination
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strlen[28] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcslen[29] Returns the length of the string
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strcmp[30] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcscmp[31] Compares two strings (three-way comparison)
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strncmp[32] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcsncmp[33] Compares a specific number of bytes in two strings
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strcoll[34] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcscoll[35] Compares two strings according to the current locale
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strchr[36] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcschr[37] Finds the first occurrence of a byte in a string
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strrchr[38] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcsrchr[39] Finds the last occurrence of a byte in a string
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strspn[40] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcsspn[41] Returns the number of initial bytes in a string that are in a second string
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strcspn[42] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcscspn[43] Returns the number of initial bytes in a string that are not in a second string
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strpbrk[44] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcspbrk[45] Finds in a string the first occurrence of a byte in a set
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strstr[46] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcsstr[47] Finds the first occurrence of a substring in a string
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strtok[48] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcstok[49] Splits a string into tokens
Miscellaneous Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strerror[50] Template:Screen reader-only Returns a string containing a message derived from an error code
Memory
manipulation
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.memset[51] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wmemset[52] Fills a buffer with a repeated byte. Since C23, Page Template:Mono/styles.css has no content.memset_explicit() was added to erase sensitive data.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.memcpy[53] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wmemcpy[54] Copies one buffer to another. Since C23, Page Template:Mono/styles.css has no content.memccpy() was added to efficiently concatenate strings.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.memmove[55] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wmemmove[56] Copies one buffer to another, possibly overlapping, buffer
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.memcmp[57] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wmemcmp[58] Compares two buffers (three-way comparison)
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.memchr[59] Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wmemchr[60] Finds the first occurrence of a byte in a buffer
  1. For wide string functions substitute Page Template:Mono/styles.css has no content.wchar_t for "byte" in the description

Multibyte functions

Name Description
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mblen[61] Returns the number of bytes in the next multibyte character
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbtowc[62] Converts the next multibyte character to a wide character
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wctomb[63] Converts a wide character to its multibyte representation
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbstowcs[64] Converts a multibyte string to a wide string
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcstombs[65] Converts a wide string to a multibyte string
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.btowc[66] Converts a single-byte character to wide character, if possible
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wctob[67] Converts a wide character to a single-byte character, if possible
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbsinit[68] Checks if a state object represents initial state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbrlen[69] Returns the number of bytes in the next multibyte character, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbrtowc[70] Converts the next multibyte character to a wide character, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcrtomb[71] Converts a wide character to its multibyte representation, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbsrtowcs[72] Converts a multibyte string to a wide string, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcsrtombs[73] Converts a wide string to a multibyte string, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbrtoc8[74] Converts the next multibyte character to a UTF-8 character, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.c8rtomb[75] Converts a single code point from UTF-8 to a narrow multibyte character representation, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbrtoc16[76] Converts the next multibyte character to a UTF-16 character, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.c16rtomb[77] Converts a single code point from UTF-16 to a narrow multibyte character representation, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mbrtoc32[78] Converts the next multibyte character to a UTF-32 character, given state
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.c32rtomb[79] Converts a single code point from UTF-32 to a narrow multibyte character representation, given state

These functions all need a mbstate_t object, originally in static memory (making the functions not be thread-safe) and in later additions the caller must maintain. This was originally intended to track shift states in the mb encodings, but modern ones such as UTF-8 do not need this. However these functions were designed on the assumption that the wc encoding is not a variable-width encoding and thus are designed to deal with exactly one wchar_t at a time, passing it by value rather than using a string pointer. As UTF-16 is a variable-width encoding, the mbstate_t has been reused to keep track of surrogate pairs in the wide encoding, though the caller must still detect and call mbtowc twice for a single character.[80][81][82] Later additions to the standard admit that the only conversion programmers are interested in is between UTF-8 and UTF-16 and directly provide this.

Script error: No such module "anchor".Numeric conversions

Byte
string
Wide
string
Description[note 1]
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.atof[83] Template:Screen reader-only converts a string to a floating-point value ('atof' means 'ASCII to float')
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.atoi
Page Template:Mono/styles.css has no content.atol
Page Template:Mono/styles.css has no content.atoll[84]
Template:Screen reader-only converts a string to an integer (C99) ('atoi' means 'ASCII to integer')
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strtof (C99)[85]
Page Template:Mono/styles.css has no content.strtod[86]
Page Template:Mono/styles.css has no content.strtold (C99)[87]
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcstof (C99)[88]
Page Template:Mono/styles.css has no content.wcstod[89]
Page Template:Mono/styles.css has no content.wcstold (C99)[90]
converts a string to a floating-point value
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strtol
Page Template:Mono/styles.css has no content.strtoll[91]
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcstol
Page Template:Mono/styles.css has no content.wcstoll[92]
converts a string to a signed integer
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strtoul
Page Template:Mono/styles.css has no content.strtoull[93]
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.wcstoul
Page Template:Mono/styles.css has no content.wcstoull[94]
converts a string to an unsigned integer
  1. Here string refers either to byte string or wide string

The C standard library contains several functions for numeric conversions. The functions that deal with byte strings are defined in the stdlib.h header (cstdlib header in C++). The functions that deal with wide strings are defined in the wchar.h header (cwchar header in C++).

The functions strchr, bsearch, strpbrk, strrchr, strstr, memchr and their wide counterparts are not const-correct, since they accept a const string pointer and return a non-const pointer within the string. This has been fixed in C23.[95]

Also, since the Normative Amendment 1 (C95), atoxx functions are considered subsumed by strtoxxx functions, for which reason neither C95 nor any later standard provides wide-character versions of these functions. The argument against atoxx is that they do not differentiate between an error and a 0.[96]

Several related standards have extended the string handling functionality provided by standard C, including BSD, SVID, and POSIX. Some such functions have been added in more recent C standards (e.g. C11 and C23).

Name Source Description
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.bzero[97] 4.2BSD, POSIX.1-2001 Zeros out a buffer. Deprecated by Page Template:Mono/styles.css has no content.memset and removed in POSIX.1-2008.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.memccpy[98] 4.4BSD, SVID4, POSIX.1-2001, C23 Copies between two non-overlapping buffers, stopping when a given byte is found.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.mempcpy[99] GNU Copies between two non-overlapping buffers, returning a pointer to the byte following the last written byte.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strcasecmp, Page Template:Mono/styles.css has no content.strncasecmp[100] 4.4BSD, POSIX.1-2001 Case-insensitive versions of Page Template:Mono/styles.css has no content.strcmp and Page Template:Mono/styles.css has no content.strncmp, respectively.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strcat_s,[101] Page Template:Mono/styles.css has no content.strncat_s[102] Windows, C11 Bounds-checking versions of Page Template:Mono/styles.css has no content.strcat and Page Template:Mono/styles.css has no content.strncat, respectively.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strcpy_s,[103] Page Template:Mono/styles.css has no content.strncpy_s[104] Windows, C11 Bounds-checking versions of Page Template:Mono/styles.css has no content.strcpy and Page Template:Mono/styles.css has no content.strncpy, respectively.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strdup, Page Template:Mono/styles.css has no content.strndup[105] POSIX.1-2001, C23 Allocates memory and duplicates a string into it.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strerror_r[106] POSIX.1-2001, GNU A thread-safe version of Page Template:Mono/styles.css has no content.strerror. The GNU variant is incompatible with the POSIX one.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strlcpy[107] POSIX.1-2024 A variant of Page Template:Mono/styles.css has no content.strcpy that truncates the result to fit in the destination buffer.[108]
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strlcat[107] POSIX.1-2024 A variant of Page Template:Mono/styles.css has no content.strcat that truncates the result to fit in the destination buffer.[108]
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strsignal[109] SVID3, POSIX.1-2008 Returns a string representation of a signal code.
Script error: No such module "anchor".Page Template:Mono/styles.css has no content.strtok_r[110] POSIX.1-1996 A thread-safe version of Page Template:Mono/styles.css has no content.strtok.

strlcpy, strlcat

Despite the well-established need to replace strcat[22] and strcpy[18] with functions that do not allow buffer overflows, no accepted standard has arisen. This is partly due to the mistaken belief by many C programmers that strncat and strncpy have the desired behavior; however, neither function was designed for this (they were intended to manipulate null-padded fixed-size string buffers, a data format less commonly used in modern software), and the behavior and arguments are non-intuitive and often written incorrectly even by expert programmers.[108]

The most popularTemplate:Efn replacement are the strlcat[111] and strlcpy[112] functions, which appeared in OpenBSD 2.4 in December, 1998.[108] These functions always write one NUL to the destination buffer, truncating the result if necessary, and return the size of buffer that would be needed, which allows detection of the truncation and provides a size for creating a new buffer that will not truncate. For a long time they have not been included in the GNU C library (used by software on Linux), on the basis of allegedly being inefficient,[113] encouraging the use of C strings (instead of some superior alternative form of string),[114][115] and hiding other potential errors.[116][117] Even while glibc hadn't added support, strlcat and strlcpy have been implemented in a number of other C libraries including ones for OpenBSD, FreeBSD, NetBSD, Solaris, OS X, and QNX, as well as in alternative C libraries for Linux, such as libbsd, introduced in 2008,[118] and musl, introduced in 2011,[119][120] and the source code added directly to other projects such as SDL, GLib, ffmpeg, rsync, and even internally in the Linux kernel. This did change in 2024, the glibc FAQ notes that as of glibc 2.38, the code has been committed [121] and thereby added.[122] These functions were standardized as part of POSIX.1-2024,[123] the Austin Group Defect Tracker ID 986 tracked some discussion about such plans for POSIX.

As part of its 2004 Security Development Lifecycle, Microsoft introduced a family of "secure" functions including strcpy_s and strcat_s (along with many others).[124] These functions were standardized with some minor changes as part of the optional C11 (Annex K) proposed by ISO/IEC WDTR 24731.[125] These functions perform various checks including whether the string is too long to fit in the buffer. If the checks fail, a user-specified "runtime-constraint handler" function is called,[126] which usually aborts the program.[127][128] These functions attracted considerable criticism because initially they were implemented only on Windows and at the same time warning messages started to be produced by Microsoft Visual C++ suggesting use of these functions instead of standard ones. This has been speculated by some to be an attempt by Microsoft to lock developers into its platform.[129] Experience with these functions has shown significant problems with their adoption and errors in usage, so the removal of Annex K was proposed for the next revision of the C standard.[130] Usage of memset_s has been suggested as a way to avoid unwanted compiler optimizations.[131][132]

See also

Notes

Template:Notelist

References

Page Template:Reflist/styles.css has no content.

  1. a b c Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. Script error: No such module "citation/CS1".
  6. Script error: No such module "citation/CS1".
  7. Script error: No such module "citation/CS1".
  8. Script error: No such module "citation/CS1".
  9. Script error: No such module "citation/CS1".
  10. Script error: No such module "citation/CS1".
  11. Script error: No such module "citation/CS1".
  12. Script error: No such module "citation/CS1".
  13. a b Script error: No such module "citation/CS1".
  14. Script error: No such module "citation/CS1".
  15. a b Script error: No such module "citation/CS1".
  16. a b Script error: No such module "citation/CS1".
  17. Script error: No such module "citation/CS1".
  18. a b Script error: No such module "citation/CS1".
  19. Script error: No such module "citation/CS1".
  20. Script error: No such module "citation/CS1".
  21. Script error: No such module "citation/CS1".
  22. a b Script error: No such module "citation/CS1".
  23. Script error: No such module "citation/CS1".
  24. Script error: No such module "citation/CS1".
  25. Script error: No such module "citation/CS1".
  26. Script error: No such module "citation/CS1".
  27. Script error: No such module "citation/CS1".
  28. Script error: No such module "citation/CS1".
  29. Script error: No such module "citation/CS1".
  30. Script error: No such module "citation/CS1".
  31. Script error: No such module "citation/CS1".
  32. Script error: No such module "citation/CS1".
  33. Script error: No such module "citation/CS1".
  34. Script error: No such module "citation/CS1".
  35. Script error: No such module "citation/CS1".
  36. Script error: No such module "citation/CS1".
  37. Script error: No such module "citation/CS1".
  38. Script error: No such module "citation/CS1".
  39. Script error: No such module "citation/CS1".
  40. Script error: No such module "citation/CS1".
  41. Script error: No such module "citation/CS1".
  42. Script error: No such module "citation/CS1".
  43. Script error: No such module "citation/CS1".
  44. Script error: No such module "citation/CS1".
  45. Script error: No such module "citation/CS1".
  46. Script error: No such module "citation/CS1".
  47. Script error: No such module "citation/CS1".
  48. Script error: No such module "citation/CS1".
  49. Script error: No such module "citation/CS1".
  50. Script error: No such module "citation/CS1".
  51. Script error: No such module "citation/CS1".
  52. Script error: No such module "citation/CS1".
  53. Script error: No such module "citation/CS1".
  54. Script error: No such module "citation/CS1".
  55. Script error: No such module "citation/CS1".
  56. Script error: No such module "citation/CS1".
  57. Script error: No such module "citation/CS1".
  58. Script error: No such module "citation/CS1".
  59. Script error: No such module "citation/CS1".
  60. Script error: No such module "citation/CS1".
  61. Script error: No such module "citation/CS1".
  62. Script error: No such module "citation/CS1".
  63. Script error: No such module "citation/CS1".
  64. Script error: No such module "citation/CS1".
  65. Script error: No such module "citation/CS1".
  66. Script error: No such module "citation/CS1".
  67. Script error: No such module "citation/CS1".
  68. Script error: No such module "citation/CS1".
  69. Script error: No such module "citation/CS1".
  70. Script error: No such module "citation/CS1".
  71. Script error: No such module "citation/CS1".
  72. Script error: No such module "citation/CS1".
  73. Script error: No such module "citation/CS1".
  74. Script error: No such module "citation/CS1".
  75. Script error: No such module "citation/CS1".
  76. Script error: No such module "citation/CS1".
  77. Script error: No such module "citation/CS1".
  78. Script error: No such module "citation/CS1".
  79. Script error: No such module "citation/CS1".
  80. Script error: No such module "citation/CS1".
  81. Script error: No such module "citation/CS1".
  82. Script error: No such module "citation/CS1".
  83. Script error: No such module "citation/CS1".
  84. Script error: No such module "citation/CS1".
  85. Script error: No such module "citation/CS1".
  86. Script error: No such module "citation/CS1".
  87. Script error: No such module "citation/CS1".
  88. Script error: No such module "citation/CS1".
  89. Script error: No such module "citation/CS1".
  90. Script error: No such module "citation/CS1".
  91. Script error: No such module "citation/CS1".
  92. Script error: No such module "citation/CS1".
  93. Script error: No such module "citation/CS1".
  94. Script error: No such module "citation/CS1".
  95. Script error: No such module "citation/CS1".
  96. C99 Rationale, 7.20.1.1
  97. Script error: No such module "citation/CS1".
  98. Script error: No such module "citation/CS1".
  99. Script error: No such module "citation/CS1".
  100. Script error: No such module "citation/CS1".
  101. Script error: No such module "citation/CS1".
  102. Script error: No such module "citation/CS1".
  103. Script error: No such module "citation/CS1".
  104. Script error: No such module "citation/CS1".
  105. Script error: No such module "citation/CS1".
  106. Script error: No such module "citation/CS1".
  107. a b Script error: No such module "citation/CS1".
  108. a b c d Script error: No such module "citation/CS1".
  109. Script error: No such module "citation/CS1".
  110. Script error: No such module "citation/CS1".
  111. Script error: No such module "citation/CS1".
  112. Script error: No such module "citation/CS1".
  113. Script error: No such module "citation/CS1".
  114. libc-alpha mailing list Script error: No such module "webarchive"., selected messages from 8 August 2000 thread: 53, 60, 61
  115. The ups and downs of strlcpy(); LWN.net
  116. Script error: No such module "citation/CS1".
  117. Template:Man "However, one may question the validity of such optimizations, as they defeat the whole purpose of strlcpy() and strlcat(). As a matter of fact, the first version of this manual page got it wrong."
  118. Script error: No such module "citation/CS1".
  119. Script error: No such module "citation/CS1".
  120. Script error: No such module "citation/CS1".
  121. strlc{py|at} commit
  122. Discussion of strlcpy and strlcat in glibc 2.38 on Hacker News
  123. Script error: No such module "citation/CS1".
  124. Script error: No such module "citation/CS1".
  125. Script error: No such module "citation/CS1".
  126. Script error: No such module "citation/CS1".
  127. Script error: No such module "citation/CS1".
  128. Script error: No such module "citation/CS1".
  129. Script error: No such module "citation/CS1".
  130. Script error: No such module "citation/CS1".
  131. Script error: No such module "citation/CS1".
  132. Template:Man

Script error: No such module "Check for unknown parameters".

Script error: No such module "Side box".

  • Fast memcpy in C, multiple C coding examples to target different types of CPU instruction architectures

Template:CProLang