(mu_mh_delim): New function
Showing
2 changed files
with
17 additions
and
1 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2004, 2005, |
3 | 2006 Free Software Foundation, Inc. | ||
3 | 4 | ||
4 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 6 | modify it under the terms of the GNU Lesser General Public |
... | @@ -142,6 +143,8 @@ extern int mu_set_default_fallback (const char *str); | ... | @@ -142,6 +143,8 @@ extern int mu_set_default_fallback (const char *str); |
142 | 143 | ||
143 | extern int mu_is_proto (const char *p); | 144 | extern int mu_is_proto (const char *p); |
144 | 145 | ||
146 | extern int mu_mh_delim (const char *str); | ||
147 | |||
145 | #ifdef __cplusplus | 148 | #ifdef __cplusplus |
146 | } | 149 | } |
147 | #endif | 150 | #endif | ... | ... |
... | @@ -1334,6 +1334,19 @@ mu_is_proto (const char *p) | ... | @@ -1334,6 +1334,19 @@ mu_is_proto (const char *p) |
1334 | return 0; | 1334 | return 0; |
1335 | } | 1335 | } |
1336 | 1336 | ||
1337 | int | ||
1338 | mu_mh_delim (const char *str) | ||
1339 | { | ||
1340 | if (str[0] == '-') | ||
1341 | { | ||
1342 | for (; *str == '-'; str++) | ||
1343 | ; | ||
1344 | for (; *str == ' ' || *str == '\t'; str++) | ||
1345 | ; | ||
1346 | } | ||
1347 | return str[0] == '\n'; | ||
1348 | } | ||
1349 | |||
1337 | char * | 1350 | char * |
1338 | __argp_base_name (const char *arg) | 1351 | __argp_base_name (const char *arg) |
1339 | { | 1352 | { | ... | ... |
-
Please register or sign in to post a comment