KMP算法--待定
https://blog.csdn.net/slimmm/article/details/83989811 KMP算法 准备搞压缩看他文章 不清楚干啥的 先放着这 #include <stdio.h> #include <string.h>//memset #include <stdlib.h>//free #include <stddef.h> #define uint8_t unsigned char #define uint16_t unsigned short #define uint32_t unsigned int #define uint64_t unsigned long long #define uLong unsigned long typedef unsigned char uchar; typedef unsigned short ushort; typedef unsigned int uint; #define TEST_STR 0 //选择测试对象是字符串还是数组 typedef struct KMP { uchar *src; //源数据 uchar *dst; //要求匹配的数据 ushort sLen; //源数据长度 ushort pLen; //匹配数据长度 ushort coord; //匹配到数据记录其坐标 ushort matchLen