Lines Matching defs:array
117 * eap_get_names_as_string_array - Get supported EAP methods as string array
118 * @num: Buffer for returning the number of items in array, not including %NULL
120 * Returns: A %NULL-terminated array of strings, or %NULL on error.
123 * array of strings. The caller must free the returned array items and the
124 * array.
130 char **array;
136 array = os_zalloc(sizeof(char *) * (array_len + 1));
137 if (array == NULL)
141 array[i++] = os_strdup(m->name);
142 if (array[i - 1] == NULL) {
144 os_free(array[j]);
145 os_free(array);
149 array[i] = NULL;
154 return array;