This commit is contained in:
Valér Jakubčo 2021-12-02 18:06:19 +01:00
parent 7b86b6ba5f
commit 49c820de76

View File

@ -40,7 +40,7 @@ long int* strToInt(const char* chArr, int* counter){
}
//printf("counter %d\n", *counter);
long* dArr = (long*)calloc(*counter, sizeof(long));
for(int i; i < *counter; i++){
for(int i = 0; i < *counter; i++){
dArr[i] = tmp[i];
}
free(tmp);
@ -93,7 +93,7 @@ void print_tree(const long* arr, int* size){
int main(){
char chArr[SIZE];
int counter;
int counter=0;
int* counterPtr = &counter;
while(1){
char* r = fgets(chArr, SIZE, stdin);