ring.c