#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define BUF_LEN1 64
typedef char (*P_BUFFER)[BUF_LEN1];
/* 字符串分割 到 指定缓冲区 */
int StrSplit(char *str, const char *delims, P_BUFFER dst)
{
char *result = NULL;
int numbers=0;
result = strtok(str, delims);
while(result != NULL) {
strcpy(dst[numbers++],result);
result = strtok(NULL, delims);
}
return numbers;
}
字符串分割 到 指定缓冲区
最新推荐文章于 2024-09-12 14:47:19 发布