How can I get the path of home directory in Mac OS X
using C
language in XCode
editor.
相关问题
- Multiple sockets for clients to connect to
- What is the best way to do a search in a large fil
- glDrawElements only draws half a quad
- Index of single bit in long integer (in C) [duplic
- Equivalent of std::pair in C
This should work under Linux, Unix and OS X, for Windows you need to make a slight modification.
with FSFindFolder:
with CSCopyUserName:
with NSHomeDirectory:
note that the path can use UTF8 characters.