4 * Convert "quoted printable" encoding to binary (stdin to stdout)
5 * Copyright (C) 1999 by Art Cancro
6 * Distributed under the terms of the GNU General Public License.
15 int main(int argc, char *argv[]) {
17 int soft_line_break = 0;
20 while (fgets(buf, 80, stdin) != NULL) {
21 while (isspace(buf[strlen(buf)-1]))
22 buf[strlen(buf)-1] = 0;
25 while (strlen(buf) > 0) {
26 if (!strcmp(buf, "=")) {
29 } else if ( (strlen(buf)>=3) && (buf[0]=='=') ) {
30 sscanf(&buf[1], "%02x", &ch);
38 if (soft_line_break == 0) printf("\r\n");