Using the C Programming Language and getting input using getopt. If we have used the command line at we should be used to providing command line options such as ping -c or ls -l; the options -l, -c etc can be read from within the program using the getopt function from the getopt.h header file. For more information you can read the man page , man 3 getopt if you are using Linux. Using the Raspbian OS on the Raspberry Pi this tutorial looks at creating a program in C that can be used to convert temperatures from Centigrade to Fahrenheit and vice versa. We will use getopt to search for the options -c and -f to ensure that the correct calculation is applied.
Auf dieser Seite können Sie das Online-Video C Programming using getopt Tutorial in Linux mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer theurbanpenguin 04 January 2014 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 57,139 Mal angesehen und es wurde von 888 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!