C Programming using getopt Tutorial in Linux

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 49

  • @Joao-oj6bn
    @Joao-oj6bn 2 роки тому +6

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

  • @dampdigits
    @dampdigits Рік тому +1

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

  • @TheLordoftheDarkness
    @TheLordoftheDarkness 4 роки тому +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.

  • @ДимаПетров-н3ц
    @ДимаПетров-н3ц 7 місяців тому

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

  • @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

  • @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 10 років тому

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

  • @MrMits92
    @MrMits92 3 роки тому

    amazing explanation ! Great video ! Big thx !

  • @PierreLombardini
    @PierreLombardini 9 років тому +1

    this was perfect ! really easy to follow :)

  • @JasonKT13
    @JasonKT13 4 роки тому

    thank you for providing this information, very useful

  • @diogenisstogiannaris3841
    @diogenisstogiannaris3841 2 роки тому

    Great video! getopt made simple !!!

  • @gothfrog69
    @gothfrog69 2 роки тому

    That was awesome!

  • @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 4 роки тому

    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?

  • @shyngysbek6907
    @shyngysbek6907 2 місяці тому

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

    • @shyngysbek6907
      @shyngysbek6907 2 місяці тому

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

  • @D3rMesaa
    @D3rMesaa 4 роки тому

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

  • @yogpooja-vq1pp
    @yogpooja-vq1pp 5 років тому

    very well explained .. thank you

  • @samehmouldi2289
    @samehmouldi2289 5 років тому

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

  • @rafidm6263
    @rafidm6263 10 років тому

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

  • @amos660
    @amos660 2 роки тому

    beautiful.

  • @brianna8587
    @brianna8587 3 роки тому

    YOU SAVED ME

  • @chandrashekharjp3044
    @chandrashekharjp3044 6 років тому

    Great Tutorial :)

  • @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.

  • @williamsilva8779
    @williamsilva8779 3 роки тому

    thank you

  • @kumaravelrajan
    @kumaravelrajan 3 роки тому

    Perfect.

  • @shrutiambashtha6196
    @shrutiambashtha6196 5 років тому

    Thank u sooooooo much ☺️☺️☺️

  • @SepidehAsadi1
    @SepidehAsadi1 7 років тому +1

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

  • @luciomorra6174
    @luciomorra6174 4 роки тому

    Didnt understand the fflag & cflag ...:(

  • @FERCHOLO0730
    @FERCHOLO0730 3 роки тому +1

    awesome! however I played it 1.5x XD

  • @timgoppelsroeder121
    @timgoppelsroeder121 4 роки тому

    that penguin is the shit!!!!!

  • @hro688
    @hro688 6 років тому +1

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

  • @piacare
    @piacare 10 років тому +2

    8:56 did you start recording at night? Haha

  • @Isaac-eh6uu
    @Isaac-eh6uu 2 роки тому +1

    I hate getopt

  • @xintongma2976
    @xintongma2976 2 роки тому

    thank you