from.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 1994 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <ctype.h>
#include <pwd.h>
#include <string.h>
static int match(char *, char *);
int argc;
register char **argv;
{
int stashed = 0;
register char *name;
char mailbox[MAXPATHLEN];
char *tmp_mailbox;
extern char *optarg;
extern int optind;
extern int opterr;
int c;
int errflg = 0;
opterr = 0;
switch (c) {
case 's':
break;
case '?':
errflg++;
break;
}
if (errflg) {
"Usage: from [-s sender] [user]\n");
exit(1);
}
} else {
} else {
"Who are you?\n");
exit(1);
}
}
}
}
exit(0);
}
stashed = 0;
stashed = 1;
}
if (stashed)
return(0);
}
static int
{
register char ch;
++line;
if (*line == '\n')
return (0);
return (0);
line++;
}
return (*str == '\0');
}