char* str = NULL; size_t capacity = 0; getline(&str, &capacity, stdin);
The above code is an example of using getline to dynamically a