Quote Originally Posted by CommonTater View Post
Code:
sscanf(string," %s:%d",str,&num);
This is also a wrong solution and will never work.
A working solution is
Code:
if( 1==sscanf("rows: 3","%*[^:]:%d",&intvar) )
{
  /* have fun */
}
else
{
  /* bad input */
}