deleted isatty and strncmp, as they are in the C library (from guy@sun)
[unix-history] / usr / src / usr.bin / mail / aux.c
index 0869b01..f3e0850 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char *sccsid = "@(#)aux.c       5.2 (Berkeley) %G%";
+static char *sccsid = "@(#)aux.c       5.3 (Berkeley) %G%";
 #endif not lint
 
 #include "rcv.h"
 #endif not lint
 
 #include "rcv.h"
@@ -171,20 +171,6 @@ offsetof(off)
        return((int) a);
 }
 
        return((int) a);
 }
 
-/*
- * Determine if the passed file is actually a tty, via a call to
- * gtty.  This is not totally reliable, but . . .
- */
-
-isatty(f)
-{
-       struct sgttyb buf;
-
-       if (gtty(f, &buf) < 0)
-               return(0);
-       return(1);
-}
-
 /*
  * Return the desired header line from the passed message
  * pointer (or NOSTR if the desired header field is not available).
 /*
  * Return the desired header line from the passed message
  * pointer (or NOSTR if the desired header field is not available).
@@ -759,25 +745,6 @@ index(str, ch)
        return(NOSTR);
 }
 
        return(NOSTR);
 }
 
-/*
- * String compare two strings of bounded length.
- */
-
-strncmp(as1, as2, an)
-       char *as1, *as2;
-{
-       register char *s1, *s2;
-       register int n;
-
-       s1 = as1;
-       s2 = as2;
-       n = an;
-       while (--n >= 0 && *s1 == *s2++)
-               if (*s1++ == '\0')
-                       return(0);
-       return(n<0 ? 0 : *s1 - *--s2);
-}
-
 /*
  * See if the given header field is supposed to be ignored.
  */
 /*
  * See if the given header field is supposed to be ignored.
  */