Lines Matching refs:NULL
46 * end. The list is NULL terminated. If there was an error, NULL is
56 if (item == NULL)
59 if (list == NULL) {
61 (void) memset(list, NULL, (_list_increment * sizeof (void *)));
66 for (count = 0; list[count] != NULL; count++);
69 void **new_list = NULL;
75 (void) memset(new_list, NULL,
77 for (count = 0; list[count] != NULL; count++)
102 * returns the first element matched, or NULL if none exists
112 if (list != NULL)
113 for (current = 0; list[current] != NULL; current++)
116 return (NULL);
121 * list_concatenate() takes in two NULL terminated lists of items (type **)
124 * there is a failure, NULL is returned.
129 void **list = NULL;
136 if ((list1 == NULL) || (list2 == NULL))
137 return ((list1 != NULL) ? list1 : list2);
139 for (size1 = 0; list1[size1] != NULL; size1++);
140 for (size2 = 0; list2[size2] != NULL; size2++);
146 != NULL) {
149 (void) memset(list, NULL, (new_size * sizeof (void *)));
151 for (size1 = 0; list1[size1] != NULL; size1++)
153 for (size2 = 0; list2[size2] != NULL; size2++)
180 if (list != NULL)
181 while (list[current] != NULL) {