编辑代码

#include <stdio.h>
#include <string.h>

#define COLOR_CONFIG ("33;"  ";55"   " ;88")
int main () {
    //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
    char test_data[120] = "payload.test.ti - website";
    char str[80] = "This is - www.runoob.com - website";
    char *read=NULL;
	printf("Hello world!     - c.jsrun.net.\r\n");
    read = strrchr(test_data,'.');
    if(read != NULL){
        printf("data = %s\r\n",read);
    }else{
        printf("data is null\r\n");
    }

    read = strchr(test_data,'.');
    if(read != NULL){
        printf("data = %s\r\n",read);
    }else{
        printf("data is null\r\n");
    }

    read = strtok(test_data,"-");
    if(read != NULL){
        printf("data = %s\r\n",read);
    }else{
        printf("data is null\r\n");
    }


char *sg_color_output_info = 0;
    sg_color_output_info  = COLOR_CONFIG;


    printf("string2 = %s",sg_color_output_info);
	return 0;
}