article.c

static int add_xref(ARTICLE *artp, const char *group)
Add a newsgroup to the xref list.

  1. Checks for duplicate entries and returns -1 in case of.
  2. Occupies a new article number by calling inc_active(). Returns 0 if group is not a local group.
  3. Checks if enough room in ARTICLE structure and dynamically allocates more space, if needed.
  4. Adds newsgroup name and article number to ARTICLE structure.
  5. Returns 1 to indicate, that group has been succesfully added.
Called from inspect_article().