version 1.39, 2007/04/06 21:51:09 |
version 1.40, 2007/04/07 00:24:59 |
|
|
void dmesg(FILE *); |
void dmesg(FILE *); |
int editit(char *); |
int editit(char *); |
void init(void); |
void init(void); |
int matchline(const char *, const unsigned char *, size_t); |
int matchline(const char *, const char *, size_t); |
int prompt(void); |
int prompt(void); |
int send_file(const char *, int); |
int send_file(const char *, int); |
int sendmail(const char *); |
int sendmail(const char *); |
|
|
|
|
/* |
/* |
* Does line start with `s' and end with non-comment and non-whitespace? |
* Does line start with `s' and end with non-comment and non-whitespace? |
|
* Note: Does not treat `line' as a C string. |
*/ |
*/ |
int |
int |
matchline(const char *s, const unsigned char *line, size_t linelen) |
matchline(const char *s, const char *line, size_t linelen) |
{ |
{ |
size_t slen; |
size_t slen; |
int comment; |
int comment; |
|
|
comment = 0; |
comment = 0; |
} else if (*line == '<') |
} else if (*line == '<') |
comment = 1; |
comment = 1; |
else if (!isspace(*line)) |
else if (!isspace((unsigned char)*line)) |
return (1); |
return (1); |
++line; |
++line; |
--linelen; |
--linelen; |