#include <yafl_rnt.h>
#include <assert.h>

METHOD_INFO *get_method YARGS((minimal_dual * dual,
                                char *         name))
    {
    METHOD_INFO *result, *tmp;

    assert (dual != NULL);
    result = NULL;
    tmp = dual->first_method;
    while (tmp != NULL) {
      if (strcmp(name, tmp->name) == 0) {
        result = tmp;
        tmp = NULL;
        }
      else {
        tmp = tmp->next;
        }
      }
    return result;
    }
