6
This commit is contained in:
parent
5940786e34
commit
2633e046fc
17
du6/program.c
Normal file
17
du6/program.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