home *** CD-ROM | disk | FTP | other *** search
- /*
- find_prev_cmd: find the previous results for this command (if any). If
- there is no match, then we return NULL.
-
- Kenneth Ingham
-
- Copyright (C) 1987 The University of New Mexico
- */
-
- #include "defs.h"
-
- struct old_cmd_st *
- find_prev_cmd(pipeline)
- char *pipeline;
- {
- extern struct old_cmd_st *chead;
- struct old_cmd_st *cp;
-
- cp = chead;
- while (cp != NULL && strcmp(pipeline, cp->pipeline) != 0)
- cp = cp->next;
-
- return cp;
- }
-