<pre style="font-face:monospace">
#include <stdio.h>
#include <string.h>

int main(void)
{
  char e[] = "2+3+4+5";
  int res = 0;
  char *tkn = strtok( e, "+" );

  do
  {
    res += atoi( tkn );
  } while( tkn = strtok( NULL, "+" ) );

  printf( "result=%d\n", res );

  return 0;
}
</pre>

댓글단거 방금 봤음.ㅇㅇ</pre>