traceroute: fix help text to not show -6 when traceroute6 is off
[oweals/busybox.git] / libbb / llist.c
index 5ba7f6047a98b5eb608509f4c851cd2fe0c5a3ee..51b1ce6c99c979dc9741818fffd64ab341f4598d 100644 (file)
@@ -86,3 +86,13 @@ llist_t* FAST_FUNC llist_rev(llist_t *list)
        }
        return rev;
 }
+
+llist_t* FAST_FUNC llist_find_str(llist_t *list, const char *str)
+{
+       while (list) {
+               if (strcmp(list->data, str) == 0)
+                       break;
+               list = list->link;
+       }
+       return list;
+}