du6
This commit is contained in:
parent
2b517975e9
commit
5940786e34
17
du6/main.c
Normal file
17
du6/main.c
Normal 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';
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user