Update RBC_C.c

Pure c version that can be compiled as C, C++, or Objective-C