æ¬ã®è«: ãã¾ã ã«å¤ãªå®æãæµè¡ã£ã¦ãããæ¸ããã¨ãããã©ãããã®ã¸ãã®æ å ±ã¯ããã¾ãç¥ããã¦ããªãããã§ããã®ã§ãã§ããã ãåããããã解説ãããã¨ã«ããã Cã®æ¨æºã©ã¤ãã©ãªã¯ãæãããå¤ãã©ã¤ãã©ãªã§ããããã®è¨è¨ã¯ããã«ãããã»ããµï¼ã³ã¢ï¼ä¸ã§åä½ãããã«ãã¹ã¬ãããå½ç¶ã®ç¾ä»£ã§ã¯ããã¾ããããããªãã ãã¨ãã°ãstrtokã¨ããé¢æ°ãããããã®é¢æ°ã¯ãå¼æ°ã¨ãã¦æ¸¡ãããæååããå é¨ã®ãããã¡ã«ã³ãã¼ããã次ã®strtokã®å¼æ°ã«ã¯ãNULLã渡ããã¨ã§ããã®ã³ãã¼ããããããã¡ããã次ã®ãã¼ã¯ã³ã®å ´æã¸ã®ãã¤ã³ã¿ã¼ãè¿ãã®ã§ããã void f( char const * ptr ) { char const * p1 = strtok( ptr, " " ) ; char const * p2 = strtok( NULL, " " ) ; } ããããããstrtokãè¤
{{#tags}}- {{label}}
{{/tags}}