From 6e567401296e02119cd07baaf932f1f4cb75d396 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 2 Apr 2020 23:02:57 +0000 Subject: [PATCH] =?UTF-8?q?Nahr=C3=A1t=20soubory=20do=20=E2=80=9Edu4?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du4/bodya.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 du4/bodya.c diff --git a/du4/bodya.c b/du4/bodya.c new file mode 100644 index 0000000..827645b --- /dev/null +++ b/du4/bodya.c @@ -0,0 +1,62 @@ +#include +#include +#include +char* compactString(char *src,int leng) { + char *new_str = (char*)calloc(leng+1,sizeof(char)); + int k=0; + for(int i=0;i