Mac下獲取當前程序運行的目錄

NSString* getExePath() { char buf[0] = {0}; uint32_t size = 0; _NSGetExecutablePath(buf,&size); char* path = (char*)malloc(size+1); path[size] = 0; _NSGetExecutablePath(path,&
相關文章
相關標籤/搜索