Skip to content
Gaurav Walia edited this page Sep 9, 2018 · 3 revisions

☁️ USAGE IN C (:octocat: LINUX / MAC :octocat:)

1. Download ZIP and extract or clone the repository using

git clone https://github.com/GauravWalia19/RAINBOW.git

2. Navigate to download or cloning place folder(Open terminal and follow commands)

cd ~
cd Downloads
cd RAINBOW-master || cd RAINBOW
cd src/C-C++
bash c.sh

3. If U want to use in your code than create a file with extension of c (hello.c) there. Write the code given below

Terminal

touch hello.c

Open file hello.c in Text Editor and write code given below:

 #include "rainbow.h"
 #include <stdio.h>
 int main()
 {
 	printf("%sThis is a green color",GREEN); //this will print green color text
 }

4. Compile and Run using commands

gcc hello.c -o hello
./hello
Clone this wiki locally