final v2
This commit is contained in:
parent
7b86b6ba5f
commit
49c820de76
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user