Back to Browse

Command Line Options Parsing (getopt, getopt_long) | C Programming Tutorial in Nepali #98

1.1K views
Premiered May 1, 2022
48:55

C Programming Tutorial in Nepali, Part 98: Command Line Options Parsing In this video, we will dive deeper into command line arguments, more specifically the command line options. We will learn what command line options are, how they are used in a command and their types like short options and long options. We will then learn how to use functions like getopt and getopt_long defined in header file getopt.h to parse command line options easily. We will also write some example programs using getopt and getopt_long. Chapters ============ 00:00 Introduction 01:32 Introduction to Command Line Options 11:18 The getopt function 14:35 Example usage of getopt function 27:43 Introduction to GNU style long options 31:38 The getopt_long function 35:10 Example usage of getopt_long function Reading Materials: GNU Manual on Option Parsing: https://www.gnu.org/software/libc/manual/html_node/Getopt.html Source code for this entire series is available at: https://github.com/theoctober19th/c-tutorials Subscribe for more tutorials: https://www.youtube.com/BikalpaCodes?sub_confirmation=1 C Programming Tutorial in Nepali Playlist: https://www.youtube.com/playlist?list=PLk98IQqBPuzL7BjQiRucdO3mdd6iJ51zM Follow me on: Facebook : https://facebook.com/theoctober19th Twitter: https://twitter.com/theoctober19th Instagram: https://instagram.com/theoctober19th #CProgramming #BikalpaCodes #BikalpaDhakal

Download

1 formats

Video Formats

360pmp472.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Command Line Options Parsing (getopt, getopt_long) | C Programming Tutorial in Nepali #98 | NatokHD