Thank you so much for explaining things slowly. All other tutorials I found on the Internet directly went to the ':' thing leaving me clueless. You video was very well presented on the other hand. Again thanks.
Andrew - great video. Your truly passionate about sharing your knowledge. Keep up the great work. I learn a lot from watching your videos. Especially the C programming on RASPI. thanks, 73, N0AGI, Nagi
Great video. I'm a c novice so here's my question - if option is int, why does compiler allow us to option=getopt(argc....) when what we are reading from command line are characters (c or f) and not integer numbers?
Hi there... Thank for this video, it is extremely easy to follow along and understand. However, if the input is ./temp -fc the program takes 'c' as the ...How would I ensure that it still checks the flags/options in this case?
yes ofc. ** is the pointer to pointer, so char ** and char * [] is an array (or a pointer on the first element of this array) of "c-style" strings, because every string is c is just an array of char symbols with the 0 symbol at the end.
Even after 8 years still the best video i can find about this subject, thanks!
Thank you so much for explaining things slowly. All other tutorials I found on the Internet directly went to the ':' thing leaving me clueless. You video was very well presented on the other hand. Again thanks.
Glad it worked for you
Keep up the good work. I browse your videos from time to time and you always have a very direct/simple approach to explaining the concepts covered.
Thank You! I was having difficulty to understand the concept from articles.
Thanks
@@theurbanpenguin why use getopt.h instead of unistd.h header file
Andrew - great video. Your truly passionate about sharing your knowledge. Keep up the great work. I learn a lot from watching your videos. Especially the C programming on RASPI. thanks, 73, N0AGI, Nagi
Bro, super good, thank you. I was writing copy of grep and don't know how to parse multiple flags so easy!
Great video. Absolutely everything I was looking for. Thank you very much
awesome
Mate, your videos are great. I love them.
Loved that video! Thanks so much, you helped a lot!
Great
your videos are very useful. Keep up the good work, mate! :)
this was perfect ! really easy to follow :)
amazing explanation ! Great video ! Big thx !
thank you for providing this information, very useful
That was awesome!
Thank you
Great video! getopt made simple !!!
Ja geil, da hat der Kranzlmüller ja lang gesucht, bis er seine Aufgabe gefunden hat
Great video. I'm a c novice so here's my question - if option is int, why does compiler allow us to option=getopt(argc....) when what we are reading from command line are characters (c or f) and not integer numbers?
Hi there...
Thank for this video, it is extremely easy to follow along and understand. However, if the input is ./temp -fc the program takes 'c' as the ...How would I ensure that it still checks the flags/options in this case?
very well explained .. thank you
Thanks for commentiing
option is declared as an integer but assigned a char symbol from the getopt and used in switch()? What?
ok, getopt returns an integer but it is represented as a char by its ASCII value
Great Tutorial :)
YOU SAVED ME
thank you
Thank u sooooooo much ☺️☺️☺️
is there a particular reason why the flags aren't boolean?
how does the program know that cflag and flag reffer to the number of options please ?
Why did you increment c and f flag?
char **argv is the same as char *argv[] right?
yes ofc. ** is the pointer to pointer, so char ** and char * [] is an array (or a pointer on the first element of this array) of "c-style" strings, because every string is c is just an array of char symbols with the 0 symbol at the end.
Perfect.
8:56 did you start recording at night? Haha
that penguin is the shit!!!!!
Didnt understand the fflag & cflag ...:(
Thanks! It would be useful if you provide the text of code below the video link.
спасибо, бро! Сними видео про getopt_long(), плизки! ставлю лайкос! успехов!
awesome! however I played it 1.5x XD
I hate getopt
thank you
Thanks