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.
On this page of the site you can watch the video online C Programming using getopt Tutorial in Linux with a duration of hours minute second in good quality, which was uploaded by the user theurbanpenguin 04 January 2014, share the link with friends and acquaintances, this video has already been watched 57,139 times on youtube and it was liked by 888 viewers. Enjoy your viewing!