I suppose you want to
draw a spline using the
C
language. You have at least two options:
1. Use a function from a library.
2. Write your own function, based on the spline equation
(see, for instance, Wikipedia)[
^] and using graphical primitives provided by your system.