CFBundleCopyExecutableURL
バンドルの実行ファイルのURLを返します
CFURLRef CFBundleCopyExecutableURL ( CFBundleRef bundle );
解説
バンドルの実行ファイルのURLを返します。
返り値
引数
( CFBundleRef )bundle
クラス
CFBundle
Function
使用可能
10.0
参照
例文
#include <CoreFoundation/CoreFoundation.h> int main (int argc, const char * argv[]) { CFBundleRef mainBundle = CFBundleGetMainBundle(); CFURLRef urlRef = CFBundleCopyExecutableURL(mainBundle); CFShow(urlRef); return 0; }