+
+struct feed *feeds_get_feed(struct feed **feeds, int id)
+{
+ struct feed **cur;
+
+ if (feeds)
+ for (cur = feeds; *cur; cur++)
+ if ((*cur)->id == id)
+ return *cur;
+
+ return NULL;
+}
+
+struct headline *feeds_get_headline(struct feed **feeds, int id)
+{
+ struct headline *h;
+
+ if (!feeds)
+ return NULL;
+
+ while (*feeds) {
+ h = feed_get_headline(*feeds, id);
+
+ if (h)
+ return h;
+
+ feeds++;
+ }
+
+ return NULL;
+}