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! I was having difficulty to understand the concept from articles.
Thanks
@@theurbanpenguin why use getopt.h instead of unistd.h header file
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.
Bro, super good, thank you. I was writing copy of grep and don't know how to parse multiple flags so easy!
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. 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! :)
amazing explanation ! Great video ! Big thx !
this was perfect ! really easy to follow :)
thank you for providing this information, very useful
Great video! getopt made simple !!!
That was awesome!
Thank you
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?
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
Ja geil, da hat der Kranzlmüller ja lang gesucht, bis er seine Aufgabe gefunden hat
very well explained .. thank you
Thanks for commentiing
how does the program know that cflag and flag reffer to the number of options please ?
is there a particular reason why the flags aren't boolean?
beautiful.
Nice, comment thank you
YOU SAVED ME
Great Tutorial :)
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.
thank you
Perfect.
Thank u sooooooo much ☺️☺️☺️
Thanks! It would be useful if you provide the text of code below the video link.
Didnt understand the fflag & cflag ...:(
awesome! however I played it 1.5x XD
that penguin is the shit!!!!!
спасибо, бро! Сними видео про getopt_long(), плизки! ставлю лайкос! успехов!
8:56 did you start recording at night? Haha
I hate getopt
thank you
Thanks