encode.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "encode.h"
Go to the source code of this file.
Defines |
| #define | B64_MAX_MESSAGES 6 |
| #define | B64_DEF_LINE_SIZE 72 |
| #define | B64_MIN_LINE_SIZE 4 |
| #define | THIS_OPT(ac, av) (ac > 1 ? av[1][0] == '-' ? av[1][1] : 0 : 0) |
Functions |
| void | encodeblock (unsigned char in[3], unsigned char out[4], int len) |
| void | encode (FILE *infile, FILE *outfile, int linesize) |
| void | decodeblock (unsigned char in[4], unsigned char out[3]) |
| void | decode (FILE *infile, FILE *outfile) |
| char * | b64_message (int errcode) |
| int | b64 (int opt, char *infilename, char *outfilename, int linesize) |
| void | showuse (int morehelp) |
Define Documentation
| #define B64_DEF_LINE_SIZE 72 |
| #define B64_MAX_MESSAGES 6 |
| #define B64_MIN_LINE_SIZE 4 |
| #define THIS_OPT |
( |
ac, |
|
|
av |
|
) |
(ac > 1 ? av[1][0] == '-' ? av[1][1] : 0 : 0) |
Function Documentation
| int b64 |
( |
int |
opt, |
|
|
char * |
infilename, |
|
|
char * |
outfilename, |
|
|
int |
linesize | |
|
) |
| | |
| char* b64_message |
( |
int |
errcode |
) |
|
| void decode |
( |
FILE * |
infile, |
|
|
FILE * |
outfile | |
|
) |
| | |
| void decodeblock |
( |
unsigned char |
in[4], |
|
|
unsigned char |
out[3] | |
|
) |
| | |
| void encode |
( |
FILE * |
infile, |
|
|
FILE * |
outfile, |
|
|
int |
linesize | |
|
) |
| | |
| void encodeblock |
( |
unsigned char |
in[3], |
|
|
unsigned char |
out[4], |
|
|
int |
len | |
|
) |
| | |
| void showuse |
( |
int |
morehelp |
) |
|