Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The OP is asking specifically for CCS C code. The tool has a library of built-in functions different e.g. from Mikro-C or Microchip XC8 compilers. You can of course write low level code in any compiler that accesses PIC special function registers directly, but I guess he doesn't want to.