C Programming using getopt Tutorial in Linux

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025

Комментарии • 47

  • @Joao-oj6bn
    @Joao-oj6bn 2 года назад +6

    Even after 8 years still the best video i can find about this subject, thanks!

  • @TheLordoftheDarkness
    @TheLordoftheDarkness 5 лет назад +2

    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.

  • @NeoColossus1020
    @NeoColossus1020 11 лет назад +4

    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.

  • @dampdigits
    @dampdigits Год назад +1

    Thank You! I was having difficulty to understand the concept from articles.

    • @theurbanpenguin
      @theurbanpenguin  Год назад +1

      Thanks

    • @dampdigits
      @dampdigits Год назад

      @@theurbanpenguin why use getopt.h instead of unistd.h header file

  • @N0AGI
    @N0AGI 9 лет назад +7

    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ц
    @ДимаПетров-н3ц 9 месяцев назад

    Bro, super good, thank you. I was writing copy of grep and don't know how to parse multiple flags so easy!

  • @multivalfran
    @multivalfran 2 года назад

    Great video. Absolutely everything I was looking for. Thank you very much

  • @trudyandgeorge
    @trudyandgeorge 11 лет назад

    Mate, your videos are great. I love them.

  • @heisserpriester7371
    @heisserpriester7371 2 года назад

    Loved that video! Thanks so much, you helped a lot!

  • @joemeno123
    @joemeno123 11 лет назад

    your videos are very useful. Keep up the good work, mate! :)

  • @PierreLombardini
    @PierreLombardini 10 лет назад +1

    this was perfect ! really easy to follow :)

  • @MrMits92
    @MrMits92 3 года назад

    amazing explanation ! Great video ! Big thx !

  • @JasonKT13
    @JasonKT13 4 года назад

    thank you for providing this information, very useful

  • @gothfrog69
    @gothfrog69 2 года назад

    That was awesome!

  • @diogenisstogiannaris3841
    @diogenisstogiannaris3841 2 года назад

    Great video! getopt made simple !!!

  • @D3rMesaa
    @D3rMesaa 4 года назад

    Ja geil, da hat der Kranzlmüller ja lang gesucht, bis er seine Aufgabe gefunden hat

  • @shiftrip
    @shiftrip 2 года назад

    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?

  • @codesk5653
    @codesk5653 5 лет назад

    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?

  • @yogpooja-vq1pp
    @yogpooja-vq1pp 5 лет назад

    very well explained .. thank you

  • @shyngysbek6907
    @shyngysbek6907 4 месяца назад

    option is declared as an integer but assigned a char symbol from the getopt and used in switch()? What?

    • @shyngysbek6907
      @shyngysbek6907 4 месяца назад

      ok, getopt returns an integer but it is represented as a char by its ASCII value

  • @chandrashekharjp3044
    @chandrashekharjp3044 6 лет назад

    Great Tutorial :)

  • @brianna8587
    @brianna8587 3 года назад

    YOU SAVED ME

  • @williamsilva8779
    @williamsilva8779 3 года назад

    thank you

  • @shrutiambashtha6196
    @shrutiambashtha6196 5 лет назад

    Thank u sooooooo much ☺️☺️☺️

  • @rafidm6263
    @rafidm6263 10 лет назад

    is there a particular reason why the flags aren't boolean?

  • @samehmouldi2289
    @samehmouldi2289 6 лет назад

    how does the program know that cflag and flag reffer to the number of options please ?

  • @miguelboxer177
    @miguelboxer177 5 лет назад

    Why did you increment c and f flag?

  • @Submersed24
    @Submersed24 7 лет назад +1

    char **argv is the same as char *argv[] right?

    • @hro688
      @hro688 6 лет назад +1

      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.

  • @kumaravelrajan
    @kumaravelrajan 3 года назад

    Perfect.

  • @piacare
    @piacare 10 лет назад +2

    8:56 did you start recording at night? Haha

  • @timgoppelsroeder121
    @timgoppelsroeder121 4 года назад

    that penguin is the shit!!!!!

  • @luciomorra6174
    @luciomorra6174 4 года назад

    Didnt understand the fflag & cflag ...:(

  • @SepidehAsadi1
    @SepidehAsadi1 7 лет назад +1

    Thanks! It would be useful if you provide the text of code below the video link.

  • @hro688
    @hro688 6 лет назад +1

    спасибо, бро! Сними видео про getopt_long(), плизки! ставлю лайкос! успехов!

  • @FERCHOLO0730
    @FERCHOLO0730 3 года назад +1

    awesome! however I played it 1.5x XD

  • @Isaac-eh6uu
    @Isaac-eh6uu 2 года назад +1

    I hate getopt

  • @xintongma2976
    @xintongma2976 2 года назад

    thank you