Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part I: getopt_long (6 marks) Following the getopt_long demo posted on the course web site, modify your getopt and test your program from Lab1 so

Part I: getopt_long (6 marks) Following the getopt_long demo posted on the course web site, modify your getopt and test your program from Lab1 so that it accepts long options. Make up your own long option names if there is no equivalent in the man page. Any long option names you create should reflect the meaning of the flag, as described in the man page. Add and test a long option where the has_arg entry has a value of 2, that is your flag will take an optional argument, especially if you did not do this exercise in Lab 1 The only change you have to do is make is to create and initialize your own version of the struct options array then create and run a script to test your long arguments. Hand in: Full listing, script, status of testing.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions