#ifndef CLAMP_H
#define CLAMP_H

/**
 * Clamps an integer value to a specified range.
 * 
 * @param value The integer value to clamp.
 * @param min The minimum value of the range.
 * @param max The maximum value of the range.
 * @return The clamped value.
 */
int clamp(int value, int min, int max);

#endif /* CLAMP_H */