summaryrefslogtreecommitdiffstats
path: root/lib/libmytinfo/tmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libmytinfo/tmatch.c')
-rw-r--r--lib/libmytinfo/tmatch.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/libmytinfo/tmatch.c b/lib/libmytinfo/tmatch.c
deleted file mode 100644
index afccda7..0000000
--- a/lib/libmytinfo/tmatch.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * tmatch.c
- *
- * By Ross Ridge
- * Public Domain
- * 92/02/01 07:30:35
- *
- * See if a terminal name matches a list of terminal names from a
- * terminal description
- *
- */
-
-#include "defs.h"
-
-#ifdef USE_SCCS_IDS
-static const char SCCSid[] = "@(#) mytinfo tmatch.c 3.2 92/02/01 public domain, By Ross Ridge";
-#endif
-
-int
-_tmatch(line, name)
-char *line, *name; {
- char term[MAX_LINE];
- char *sp, *dp;
-
- sp = line;
- while (*sp != '\0') {
- dp = term;
- while (*sp != '\0' && *sp != '|')
- *dp++ = *sp++;
- *dp = '\0';
- if (strcmp(term, name) == 0)
- return 1;
- if (*sp == '|')
- sp++;
- }
- return 0;
-}
OpenPOWER on IntegriCloud