
NAME
arrange-h-e -- parse a command argument and store in a linked list
SYNOPSIS
arrange-h-e [-v] arg
DESCRIPION
Given an argument in the format
_name1_:_name2_:...:_nameN_
parse the _name?_ and place in a linked list, the output in reverse order as
_nameN_:...:_name2_:_name1_
Note that ":" literally the colon-character. Assume _name?_ are a sequence of letters
and possibly numbers, the period, or a hyphen.
The following options are available:
-v Verbose output
Note that an empty name on input should be discarded. For instance
:_name1_::_name2_ outputs _name2_:_name1_.
HISTORY
Introduced in csc424.162 based on a sub-task in the netbounce project.
BUGS
Use getopt to parse the command line. Parse the argument and use structs and malloc to make a linked list of the parsed names in the command argument. Produce output according to the correct syntax with the names in reverse order then in the command argument.
If the output is verbose, -v option, the output can be your choice, and it is a helpful option for your test and debugging. Without the -v option that output must be precisely just the properly formated string. That way the automated tests can work.
The makefile provided gives certain required targets.
When submitting, Do Not Submit Build Products!. Your grade will be lowered. In the repostory will be only source files. For the purposes of this course, binaries in the repository a useless burden.

author: burton rosenberg
created: 20 jan 2016
update: 20 jan 2016