interplane.Get Omega
Read in your language

interplane-mv

INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.

Brought by drakestapleton

branch main Branches Tags History

interplane-mv / adapters / aien / fixtures / fix_the_test / solution / clamp.c

11 lines · 176 bytes Raw Blame History
1#include "clamp.h"
2
3/* Limit v to the range lo..hi. */
4int clamp(int v, int lo, int hi)
5{
6 if (v < lo)
7 return lo;
8 if (v > hi)
9 return hi;
10 return v;
11}