src/t_pck__format.c
static size_t
t_pck_getSizeFromFormat( lua_State *L, const char **fmt, int dft, size_t max )
{
	size_t sz = t_pck_parseSize( fmt, dft );
	if (sz > max || sz <= 0)
		return (size_t) luaL_error( L, "size (%d) out of limits [1 … %d]", sz, max );
	return sz;
}
/** -------------------------------------------------------------------------
 * Read an integer from the format parser
 * raises an error if it is larger than the maximum size for integers.
 * \param   fmt    char**; format string
 * \param   dft    int   ; default value
 * \param   max    int   ; max value allowed for int
 * \return  size   int   ; read size
 *  -------------------------------------------------------------------------*/
Read an integer from the format parser
raises an error if it is larger than the maximum size for integers.
\param   fmt    char**; format string
\param   dft    int   ; default value
\param   max    int   ; max value allowed for int
\return  size   int   ; read size
Read an integer from the format parser raises an error if it is larger than the maximum size for integers . \ param fmt char ** ; format string \ param dft int ; default value \ param max int ; max value allowed for int \ return size int ; read size
static size_t
t_pck_getSizeFromFormat( lua_State *L, const char **fmt, int dft, size_t max )
{
	size_t sz = t_pck_parseSize( fmt, dft );
	if (sz > max || sz <= 0)
		return (size_t) luaL_error( L, "size (%d) out of limits [1 … %d]", sz, max );
	return sz;
}
static size_t t_pck_getSizeFromFormat ( lua_State * L , const char * * fmt , int dft , size_t max ) { size_t sz = t_pck_parseSize ( fmt , dft ) ; if ( sz > max || sz <= 0 ) return ( size_t ) luaL_error ( L , " s ,  m x ) return sz ; }
Read an integer from the format parser
 raises an error if it is larger than the maximum size for integers.
Read an integer from the format parser raises an error if it is larger than the maximum size for integers .