完成judge功能,管壳码全0校验

This commit is contained in:
andy
2023-07-06 22:57:48 +08:00
parent 3067b4967d
commit ec758c356b
7 changed files with 144 additions and 110 deletions

View File

@@ -79,7 +79,16 @@ static int coder_calc_year(const char *year,const char shell_year,char *uid_year
return -1;
}
// 返回1则shell_code有效
int check_shell_code(const char *shell_code)
{
for(int i=0;i<13;i++)
{
if(shell_code[i]==0)
return 0;
}
return 1;
}
// 管壳码转uid码
int coder_shell_to_uid(const char *year,const char *shell_code,char *uid_code)