📄 vcrc.h
字号:
#ifndef VCRC_H
#define VCRC_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <iconv.h>
#define CONVERT_CHARSET_SUCCESS 0
#define OPEN_CHARSET_FAIL -1
#define CONVERT_CHARSET_FAIL -2
#define BUFSIZE 655350
#define ulong unsigned long int
char *s_str;
char *s_buf;
/*convert int to string,add zero in the front string to 12 bits*/
void ValToStr(const int value, char Buffer [ ]);
/*conver code from gb2312 to utf-8*/
int code_convert(char * from_charset, char * to_charset, char * inbuf, int inlen, unsigned char * outbuf, int outlen);
/*Get CRC32 table*/
void GetCRC32Table();
/*Get CRC32 veryfy code*/
ulong _GetCRC32Str(char * sInputString);
/*return 8 bits 16 hex */
char *GetCRC32_Str(char * sInputStr, char * s);
/*Get File Crc32 int verfycode value*/
ulong _GetCRC32Buf(unsigned char buffer [ ], ulong len);
/*conver file crc32 int value to string,and format to "%08X"*/
char* GetCRC32_Buf(unsigned char Buf [ ], ulong lenth, char * s);
/*read file content to array*/
char *FileCrc32(char * filename, char * crc32);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -