[BACK]Return to head.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Diff for /src/usr.bin/mail/head.c between version 1.6 and 1.7

version 1.6, 2001/01/19 04:11:28 version 1.7, 2001/11/21 15:26:39
Line 36 
Line 36 
   
 #ifndef lint  #ifndef lint
 #if 0  #if 0
 static char sccsid[] = "@(#)head.c      8.2 (Berkeley) 4/20/95";  static const char sccsid[] = "@(#)head.c        8.2 (Berkeley) 4/20/95";
 #else  #else
 static char rcsid[] = "$OpenBSD$";  static const char rcsid[] = "$OpenBSD$";
 #endif  #endif
 #endif /* not lint */  #endif /* not lint */
   
Line 57 
Line 57 
  * accomodate all funny formats.   * accomodate all funny formats.
  */   */
 int  int
 ishead(linebuf)  ishead(char *linebuf)
         char linebuf[];  
 {  {
         char *cp;          char *cp;
         struct headline hl;          struct headline hl;
Line 85 
Line 84 
   
 /*ARGSUSED*/  /*ARGSUSED*/
 void  void
 fail(linebuf, reason)  fail(char *linebuf, char *reason)
         char linebuf[], reason[];  
 {  {
   
         /*          /*
Line 103 
Line 101 
  * structure.  Actually, it scans.   * structure.  Actually, it scans.
  */   */
 void  void
 parse(line, hl, pbuf)  parse(char *line, struct headline *hl, char *pbuf)
         char line[], pbuf[];  
         struct headline *hl;  
 {  {
         char *cp, *sp;          char *cp, *sp;
         char word[LINESIZE];          char word[LINESIZE];
Line 137 
Line 133 
  * the left string into it.   * the left string into it.
  */   */
 char *  char *
 copyin(src, space)  copyin(char *src, char **space)
         char *src;  
         char **space;  
 {  {
         char *cp, *top;          char *cp, *top;
   
Line 191 
Line 185 
 };  };
   
 int  int
 isdate(date)  isdate(char *date)
         char date[];  
 {  {
         int i;          int i;
   
Line 208 
Line 201 
  * Return 1 if they match, 0 if they don't   * Return 1 if they match, 0 if they don't
  */   */
 int  int
 cmatch(cp, tp)  cmatch(char *cp, char *tp)
         char *cp, *tp;  
 {  {
   
         while (*cp && *tp)          while (*cp && *tp)
Line 264 
Line 256 
  * or NULL if none follow.   * or NULL if none follow.
  */   */
 char *  char *
 nextword(wp, wbuf)  nextword(char *wp, char *wbuf)
         char *wp, *wbuf;  
 {  {
         int c;          int c;
   

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7