for( n=0; buff[n] != '\0'; n++)
{
if ( buff[n] != '0' && buff[n] != '1' )