How do I achieve tilde expansion in C?

前端 未结 3 1888
感动是毒
感动是毒 2021-01-04 01:48

chdir(\"~/\") doesn\'t seem to work. Am I expected to look at the string and substitute tilde by hand, or is there some better way?

3条回答
提交回复
热议问题