This commit is contained in:
Matej Hajduk 2025-11-12 09:49:32 +01:00
parent 2b517975e9
commit 5940786e34

17
du6/main.c Normal file
View File

@ -0,0 +1,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
typedef struct tree{
char value[256];
struct tree* left; //ano
struct tree* right; // nie
}Tree;
void trim_newline(char *str){
size_t len = strlen(str);
if(len > 0 && (str[len -1] == '\n')){
str[len - 1] = '\0';
}
}