반응형
#include "main.h" |
반응형
반응형
#include "main.h"
int Recv_Msg(char* buf, char* msg[])
{
char token[] = "|";
char *tmp = NULL;
int count = 0;
msg[0] = strtok(buf, token);
while (msg[count] != NULL)
{
printf("token = %s\n", msg[count]);
msg[++count] = strtok(NULL, token);
}
return count;
}
반응형