如果我有 3 个来源,如“ab c”,如何将 a 与 b 与 c 分开?
struct target *t = target_start;
char *source_start = p_colon+1;
while (*source_start == ' ' || *source_start == '\t')
{ source_start++; }
char *source_end = source_start;
while (*source_end == ' ' || *source_end == '\t')
{ source_end--; }
char *p_space = strchr(source_start,' ');
//while(p_space != NULL)
//list_sources_append(&sources, source_start);
list_targets_append(&sources, t->source = source_start);
source_end++;
*source_end = '\0';