unsigned char UTIL_DbguGetIntegerMinMax(unsigned int *pValue, unsigned int min, unsigned int max) { unsigned int value = 0; if( UTIL_DbguGetInteger(&value) == 0) { return 0; } if(value < min || value > max) { printf("\n\rThe number have to be between %d and %d\n\r", min, max); return 0; } printf("\n\r"); *pValue = value; return 1; }