Fix indentation, fix code style
This commit is contained in:
parent
a8925f86c9
commit
cefae560bf
51
base64.c
51
base64.c
|
@ -112,18 +112,20 @@ unsigned int b64_decode(const unsigned char* in, unsigned int in_len, unsigned i
|
|||
}
|
||||
|
||||
unsigned int b64_encodef(char *InFile, char *OutFile) {
|
||||
FILE *pInFile = fopen(InFile,"rb");
|
||||
FILE *pOutFile = fopen(OutFile,"wb");
|
||||
unsigned int i=0;
|
||||
unsigned int j=0;
|
||||
unsigned int c=0;
|
||||
unsigned int s[4];
|
||||
if ((pInFile==NULL) || (pOutFile==NULL) )
|
||||
{
|
||||
if (pInFile!=NULL){fclose(pInFile);}
|
||||
if (pOutFile!=NULL){fclose(pOutFile);}
|
||||
return 0;
|
||||
}
|
||||
|
||||
FILE *pInFile = fopen(InFile,"rb");
|
||||
FILE *pOutFile = fopen(OutFile,"wb");
|
||||
|
||||
unsigned int i=0;
|
||||
unsigned int j=0;
|
||||
unsigned int c=0;
|
||||
unsigned int s[4];
|
||||
|
||||
if ((pInFile==NULL) || (pOutFile==NULL) ) {
|
||||
if (pInFile!=NULL){fclose(pInFile);}
|
||||
if (pOutFile!=NULL){fclose(pOutFile);}
|
||||
return 0;
|
||||
}
|
||||
|
||||
while(c!=EOF) {
|
||||
c=fgetc(pInFile);
|
||||
|
@ -160,18 +162,19 @@ unsigned int b64_encodef(char *InFile, char *OutFile) {
|
|||
|
||||
unsigned int b64_decodef(char *InFile, char *OutFile) {
|
||||
|
||||
FILE *pInFile = fopen(InFile,"rb");
|
||||
FILE *pOutFile = fopen(OutFile,"wb");
|
||||
unsigned int c=0;
|
||||
unsigned int j=0;
|
||||
unsigned int k=0;
|
||||
unsigned int s[4];
|
||||
if ((pInFile==NULL) || (pOutFile==NULL) )
|
||||
{
|
||||
if (pInFile!=NULL){fclose(pInFile);}
|
||||
if (pOutFile!=NULL){fclose(pOutFile);}
|
||||
return 0;
|
||||
}
|
||||
FILE *pInFile = fopen(InFile,"rb");
|
||||
FILE *pOutFile = fopen(OutFile,"wb");
|
||||
|
||||
unsigned int c=0;
|
||||
unsigned int j=0;
|
||||
unsigned int k=0;
|
||||
unsigned int s[4];
|
||||
|
||||
if ((pInFile==NULL) || (pOutFile==NULL) ) {
|
||||
if (pInFile!=NULL){fclose(pInFile);}
|
||||
if (pOutFile!=NULL){fclose(pOutFile);}
|
||||
return 0;
|
||||
}
|
||||
|
||||
while(c!=EOF) {
|
||||
c=fgetc(pInFile);
|
||||
|
|
Loading…
Reference in New Issue