Lines Matching defs:string

38 #include <string.h>
198 static int size_to_string(uint64_t size, char *string, int len);
756 * We need check if the raid_level string is fully numeric. If user
757 * input string with unsupported letters, such as "s10", atoi() will
758 * return zero because it is an illegal string, but it doesn't mean
2351 * This function parses the string of disk argument, and gets the disks tag
2352 * and separators from the string. Then it translates the tag to handle, and
2453 * This function parses string of single disk with "ctd" format, for example,
2510 * This function translates controller string to tag. The return value is
2511 * SUCCESS if the string has legal format and is parsed successfully,
2527 * This function parses array string to get array tag and controller tag.
2528 * The return value is SUCCESS if the string has legal format, or
2596 * This function parses disk string of ctd format, and translates it to
2598 * The return value is SUCCESS if the string has legal format, or FAILURE
2664 * This function parses disk string of cidl format and translates it to tag.
2665 * The return value is disk tag if the string has legal format, or FAILURE
2709 /* Assert only 2 dots in this string */
2735 * This function calculates the value represented by string sizep.
2736 * The string sizep can be decomposed into three parts: an initial,
2739 * final string of one or more unrecognized characters or white-sapce
2829 * This function checks if the string are legal numeric string. The beginning
2831 * Return value is TRUE if the string are legal numeric string, or FALSE
2861 /* Check the digitals in string */
2868 /* Check the ending string */
2931 size_to_string(uint64_t size, char *string, int len)
2937 if (string == NULL) {
2952 (void) snprintf(string, len, "%llu", size);
2954 (void) snprintf(string, len, "%llu.%1u", size,
2959 if ((strlen(string) + 1) >= len) {
2962 (void) strlcat(string, unit[i], len);