From 06a08ac0dcf9b843cc4180be9cfc510628499b31 Mon Sep 17 00:00:00 2001 From: anon <anon@anon.anon> Date: Tue, 10 Dec 2024 20:39:01 +0100 Subject: [PATCH] Added 'C_C++/string_repetition.c' --- C_C++/string_repetition.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 C_C++/string_repetition.c 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; +}