概要
引数
- argc--コマンドライン引数の数
- argv--コマンドライン引数のポインタ
実装
int
main(int argc, char *argv[]) {
if(argc == 2 && !strcmp("-v", argv[1]))
die("dwm-"VERSION", © 2006-2010 dwm engineers, see LICENSE for details\n");
else if(argc != 1)
die("usage: dwm [-v]\n");
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
fputs("warning: no locale support\n", stderr);
if(!(dpy = XOpenDisplay(NULL)))
die("dwm: cannot open display\n");
checkotherwm();
setup();
scan();
run();
cleanup();
XCloseDisplay(dpy);
return 0;
}
呼出元
履歴
日付 |
更新者 |
更新内容 |
2008/1/ |
[[名前]] |
作成 |
コメント
最終更新:2011年05月11日 23:00