src/t_pck__format.c
static size_t
t_pck_parseSize( const char **fmt, size_t dft )
{
	if (! T_PCK_ISDIGIT( **fmt ))    // no number
		return dft;
	else
	{
		size_t a = 0;
		do
		{
			a = a*10 + *((*fmt)++) - '0';
		} while (T_PCK_ISDIGIT(**fmt) && a<(MAXSIZE - 9)/NB);
		return a;
	}
}
/** -------------------------------------------------------------------------
 * reads from string until input is not numeric any more.
 * \param   fmt    char**; format string
 * \param   dft    int   ; default value
 * \return  a      int   ; read numeric value
 *  -------------------------------------------------------------------------*/
reads from string until input is not numeric any more.
\param   fmt    char**; format string
\param   dft    int   ; default value
\return  a      int   ; read numeric value
reads from string until input is not numeric any more . \ param fmt char ** ; format string \ param dft int ; default value \ return a int ; read numeric value
static size_t
t_pck_parseSize( const char **fmt, size_t dft )
{
	if (! T_PCK_ISDIGIT( **fmt ))    
		return dft;
	else
	{
		size_t a = 0;
		do
		{
			a = a*10 + *((*fmt)++) - '0';
		} while (T_PCK_ISDIGIT(**fmt) && a<(MAXSIZE - 9)/NB);
		return a;
	}
}
static size_t t_pck_parseSize ( const char * * fmt , size_t dft ) { if ( ! T_PCK_ISDIGIT ( * * fmt ) ) return dft ; else { size_t a = 0 ; do { a = a * 10 + * ( ( * fmt ) ++ ) - ' ' ; } while ( T_PCK_ISDIGIT ( * * fmt ) && a < ( MAXSIZE - 9 ) / NB ) ; return a ; } }
reads from string until input is not numeric any more.
reads from string until input is not numeric any more .
// no number