pyk deep learning & natural language processing

Multiple Lines String In C

There are two ways of splitting char * variable in mupltiple lines.

/* the first one */
char *str1 = "line 1\n \
line 2";

/* the second one */
char *str2 = "line 1\n"
             "line 2";

I like the second one.

It can be useful for printing multple lines in C. Let’s take a look redis source code as an example. Instead of printing multiple lines string like this

I like to write the code like this one

less typing FTW.