string input using getline() - simple_shell project

Опубликовано: 25 Июль 2026
на канале: sammykingx
1,795
43

We've been able to see how to get string inputs using our arguments to main method ( the concept of argc and argv ). Now in this video, we used the getline() to get strin inputs from the users, we also discussed why using getline() to take string input is much better than using scanf(), gets() or any other input function.

We also talked on how to use the function, understanding the arguments to pass to the getline() method and also the concept of void args or variables. if you missed the previous videos you can watch them using the below links.
___________________________________________________________________
understanding shell_process :    • Understanding shell process - Simple Shell...  

strings and args part 1 (argc and argv) :    • Command line arguments - Simple shell pt 2  
___________________________________________________________________

github url: https://github.com/sammykingx
website: https://sammykingx.com.ng