📄 score.c
字号:
#include "stdinc.h"#include "dat.h"#include "fns.h"u8int zeroScore[VtScoreSize];voidscoreMem(u8int *score, u8int *buf, int n){ vtSha1(score, buf, n);}static inthexv(int c){ if(c >= '0' && c <= '9') return c - '0'; if(c >= 'a' && c <= 'f') return c - 'a' + 10; if(c >= 'A' && c <= 'F') return c - 'A' + 10; return -1;}intstrScore(char *s, u8int *score){ int i, c, d; for(i = 0; i < VtScoreSize; i++){ c = hexv(s[2 * i]); if(c < 0) return 0; d = hexv(s[2 * i + 1]); if(d < 0) return 0; score[i] = (c << 4) + d; } return s[2 * i] == '\0';}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -