ãã°ããåãããã³ãã³ãã®çµäºã¹ãã¼ã¿ã¹ãããã³ããã®è²ã«åæ ãããããã«ãã¦ããã çµäºã¹ãã¼ã¿ã¹ã¨ã¯ Cè¨èªãªã int main(int argc, char* argv[]) { ... return 0; } ãã® return ãã¦ãã 0 ãçµäºã¹ãã¼ã¿ã¹ããã®æ´æ°å¤ã®ä¸ä½ 8bit ãããã»ã¹ã®çµäºæã«è¦ª (ãã®ããã»ã¹ãèµ·åããããã»ã¹) ã«ãããã çµäºã¹ãã¼ã¿ã¹ã®æå®æ¹æ³ã¯ãããããããCè¨èªã®å ´å main é¢æ°ã®æ»ãå¤ä»¥å¤ã«ã exit é¢æ°ã®å¼æ°ã§ãæå®ã§ãããRuby, Perl ã®å ´åããããã main é¢æ°ã¯ç¡ã㦠exit é¢æ°ã«å¼æ°ãä¸ããæ¹æ³ã ããã¤ãããã ãã®å¤ã¯ã·ã§ã«ä¸ã§ $? ã§åç §ã§ããã % perl -e 'exit(0xdead)'; echo $? 173 % æ £ä¾ã¨ãã¦ãæ£å¸¸çµäºã®ã¨ã㯠0 ãè¿ããã¨ã«ãªã£ã¦ããã % ls
{{#tags}}- {{label}}
{{/tags}}