【发布时间】:2009-10-15 21:43:31
【问题描述】:
假设我有一个函数:
void split_path_file(char** p, char** f, char *pf)
{
//malloc and set *p to file path, malloc and set *f to file name
//pf is the pointer to the full file and path "C:\sponge\bob\square.pants"
// edit: leave pf in its origional state
}
最好的方法是什么?
【问题讨论】: