Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Nov 15, 2024
1 parent 33960b1 commit 04581fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trunk/core/judge_client/judge_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,8 @@ void make_diff_out_simple(FILE *f1, FILE *f2,char * prefix, int c1, int c2, cons
fprintf(diff,"\n||");
}
else if(isprint(c2))fprintf(diff,"%c",c2);
else if(c2==EOF)
fprintf(diff,"`End Of File`"); //Binary Code
else {
fprintf(diff,"`0x%02x`",c2); //Binary Code
}
Expand All @@ -785,6 +787,8 @@ void make_diff_out_simple(FILE *f1, FILE *f2,char * prefix, int c1, int c2, cons
for(size_t i=0;i<strlen(buf);i++){
if (isprint(buf[i]))
fprintf(diff,"%c",buf[i]);
else if(buf[i]==EOF)
fprintf(diff,"`End Of File`"); //Binary Code
else
fprintf(diff,"`0x%02x`",buf[i]); //Binary Code
}
Expand Down

0 comments on commit 04581fc

Please sign in to comment.