diff --git a/C_C++/string_repetition.c b/C_C++/string_repetition.c new file mode 100644 index 0000000..ccfe248 --- /dev/null +++ b/C_C++/string_repetition.c @@ -0,0 +1,12 @@ +// @BAKE gcc $@ -o $* +signed main(void) { + const char * suffix = "cpp"; + + if (suffix[0] == "cxx"[0] + && suffix[1] == "cxx"[1] + && suffix[2] == "cxx"[2]) { + return 1; + } + + return 0; +}