color_str is a function to give available color to a string. It takes two arguments both of type string.
First argument is to set color. You can check complete list of available colors in Cquery [here].
Second argument is your string which you want to colorized.
color argument is case insensitive as
Its also possible
First argument is to set color. You can check complete list of available colors in Cquery [here].
Second argument is your string which you want to colorized.
Syntax:
color_str(color,string);
Examples:
#include<cquery.h> void main(void) { color_str("blue","hello world"); }
color argument is case insensitive as
#include<cquery.h> void main(void) { color_str("blue","hello world"); // all will work :) color_str("blUE","hello world"); color_str("BLUE","hello world"); }
Its also possible
#include<cquery.h> void main(void) { char q[10] = "hello"; //every possibility up to you what you like most:) char *p = "hello"; color_str("blue","hello world"); color_str("blUE",q); color_str("BLUE",p); }
No comments:
Post a Comment