Lines Matching refs:array
10 function can be used to copy the contents of any kind of array.
26 arbitrary array function.
55 A @dfn{string} is a null-terminated array of bytes of type @code{char},
59 to be stored somewhere else---in an array variable, a string constant,
109 The amount of memory allocated for a byte array may extend past the null byte
110 that marks the end of the string that the array contains. In this
112 total amount of memory allocated for an array, while the term
124 strings or moves bytes into a pre-allocated array, you should be
126 checks for overflowing the array. Many of the library functions
180 operate on. The array arguments and return values for these functions
195 The array arguments and return values for these
197 the array elements are referred to as ``bytes'' and ``wide
235 terminating null byte within the array.)
243 When applied to an array, the @code{strlen} function returns
245 get the allocated size of the array that holds a string using
257 array itself, not a pointer to it. For example:
305 character the return value is not only the offset in the array, it is
314 If the array @var{s} of size @var{maxlen} contains a null byte,
321 long as @var{maxlen} does not exceed the size of @var{s}'s array.
354 @cindex array copy functions
360 the destination array specified to the left of the source array. Most
361 of these functions return the address of the destination array; a few
367 destination array overlaps the end of the source array, the original
368 contents of that part of the source array may get overwritten before it
391 contents of an array:
856 possibly-truncated contents of a string or array to another, and
1103 @cindex array comparison functions
1473 Here is an example of sorting an array of strings, using @code{strcoll}
1496 sort_strings (char **array, int nstrings)
1499 qsort (array, nstrings,
1511 collation, and stores the transformed string in the array @var{to}. Up
1521 entirely fit in the array @var{to}. In this case, only as much of the
1523 string, call @code{strxfrm} again with a bigger output array.
1531 what size the allocated array should be. It does not matter what
1540 selected for collation, and stores the transformed string in the array
1550 wide string did not entirely fit in the array @var{wto}. In
1553 @code{wcsxfrm} again with a bigger output array.
1561 useful for determining what size the allocated array should be (remember
1577 @r{to sort an array of @code{struct sorter}.} */
1592 sort_strings_fast (char **array, int nstrings)
1601 size_t length = strlen (array[i]) * 2;
1605 temp_array[i].input = array[i];
1610 /* @r{Transform @code{array[i]}.} */
1611 transformed_length = strxfrm (transformed, array[i], length);
1624 (void) strxfrm (transformed, array[i],
1635 /* @r{Put the elements back in the permanent array}
1638 array[i] = temp_array[i].input;
1651 sort_strings_fast (wchar_t **array, int nstrings)
1654 /* @r{Transform @code{array[i]}.} */
1655 transformed_length = wcsxfrm (transformed, array[i], length);
1669 (void) wcsxfrm (transformed, array[i],
2463 The @code{memfrob} function reversibly obfuscates an array of binary