Even after 8 years still the best video i can find about this subject, thanks!
@NeoColossus102010 жыл бұрын
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.
@TheLordoftheDarkness4 жыл бұрын
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.
@theurbanpenguin4 жыл бұрын
Glad it worked for you
@dampdigits Жыл бұрын
Thank You! I was having difficulty to understand the concept from articles.
@theurbanpenguin Жыл бұрын
Thanks
@dampdigits Жыл бұрын
@@theurbanpenguin why use getopt.h instead of unistd.h header file
@N0AGI9 жыл бұрын
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
@ДимаПетров-н3ц5 ай бұрын
Bro, super good, thank you. I was writing copy of grep and don't know how to parse multiple flags so easy!
@multivalfran2 жыл бұрын
Great video. Absolutely everything I was looking for. Thank you very much
@theurbanpenguin2 жыл бұрын
awesome
@joemeno12310 жыл бұрын
your videos are very useful. Keep up the good work, mate! :)
@trudyandgeorge10 жыл бұрын
Mate, your videos are great. I love them.
@JasonKT134 жыл бұрын
thank you for providing this information, very useful
@heisserpriester73712 жыл бұрын
Loved that video! Thanks so much, you helped a lot!
@theurbanpenguin2 жыл бұрын
Great
@codesk56534 жыл бұрын
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?
@shiftrip2 жыл бұрын
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?
@PierreLombardini9 жыл бұрын
this was perfect ! really easy to follow :)
@MrMits922 жыл бұрын
amazing explanation ! Great video ! Big thx !
@shyngysbek6907Ай бұрын
option is declared as an integer but assigned a char symbol from the getopt and used in switch()? What?
@shyngysbek6907Ай бұрын
ok, getopt returns an integer but it is represented as a char by its ASCII value
@D3rMesaa3 жыл бұрын
Ja geil, da hat der Kranzlmüller ja lang gesucht, bis er seine Aufgabe gefunden hat
@diogenisstogiannaris38412 жыл бұрын
Great video! getopt made simple !!!
@samehmouldi22895 жыл бұрын
how does the program know that cflag and flag reffer to the number of options please ?
@rafidm626310 жыл бұрын
is there a particular reason why the flags aren't boolean?
@miguelboxer1775 жыл бұрын
Why did you increment c and f flag?
@yogpooja-vq1pp4 жыл бұрын
very well explained .. thank you
@theurbanpenguin4 жыл бұрын
Thanks for commentiing
@Submersed247 жыл бұрын
char **argv is the same as char *argv[] right?
@hro6886 жыл бұрын
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.
@gothfrog69 Жыл бұрын
That was awesome!
@theurbanpenguin Жыл бұрын
Thank you
@chandrashekharjp30446 жыл бұрын
Great Tutorial :)
@luciomorra61744 жыл бұрын
Didnt understand the fflag & cflag ...:(
@brianna85873 жыл бұрын
YOU SAVED ME
@SepidehAsadi17 жыл бұрын
Thanks! It would be useful if you provide the text of code below the video link.
@amos6602 жыл бұрын
beautiful.
@theurbanpenguin2 жыл бұрын
Nice, comment thank you
@williamsilva87792 жыл бұрын
thank you
@shrutiambashtha61965 жыл бұрын
Thank u sooooooo much ☺️☺️☺️
@hro6886 жыл бұрын
спасибо, бро! Сними видео про getopt_long(), плизки! ставлю лайкос! успехов!