帧头 帧尾问题

2019-04-15 18:21发布

#include #include
char   *head_count(char *str, char *head)//找出帧头前面的字符串 { char *temp; int size_head = strlen(head); int count1 = 0; int head_flag = 0;
if(str == NULL || head == NULL) { return NULL; } if(strlen(str) < strlen(head)) { return NULL; }
while(*str != '