2 * Convert "quoted printable" encoding to binary (stdin to stdout)
3 * Copyright (C) 1999 by Art Cancro
4 * Distributed under the terms of the GNU General Public License.
13 int main(int argc, char *argv[]) {
15 int soft_line_break = 0;
18 while (fgets(buf, 80, stdin) != NULL) {
19 while (isspace(buf[strlen(buf)-1]))
20 buf[strlen(buf)-1] = 0;
23 while (strlen(buf) > 0) {
24 if (!strcmp(buf, "=")) {
27 } else if ( (strlen(buf)>=3) && (buf[0]=='=') ) {
28 sscanf(&buf[1], "%02x", &ch);
36 if (soft_line_break == 0) printf("\r\n");