* output a group of 3 bytes (4 input characters). * the input chars are pointed to by p, they are to * be output to file f. n is used to tell us not to * output all of them at the end of the file. */
| 231 | * output all of them at the end of the file. |
| 232 | */ |
| 233 | void |
| 234 | outdec(char *p, FILE *f, int n) |
| 235 | { |
| 236 | int c1, c2, c3; |
| 237 | |
| 238 | c1 = DEC(*p) << 2 | DEC(p[1]) >> 4; |
| 239 | c2 = DEC(p[1]) << 4 | DEC(p[2]) >> 2; |
| 240 | c3 = DEC(p[2]) << 6 | DEC(p[3]); |
| 241 | if (n >= 1) |
| 242 | putc(c1, f); |
| 243 | if (n >= 2) |
| 244 | putc(c2, f); |
| 245 | if (n >= 3) |
| 246 | putc(c3, f); |
| 247 | } |
| 248 | |
| 249 | #if !defined(MSDOS) && !defined(VMS) && !defined(WIN32) && !defined(__APPLE__) && !defined(__linux__) |
| 250 | /* |