Arrange H.E. (home edition)

by: burt rosenberg
at: university of miami
date: sep 2015

Helen Soros works the new pneumatic
tube system to take cash at
Marshall Fields store in Chicago,
November 26, 1947.

Goals

The goals of this project are:

Man Page

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

	

Specific steps

To get started:

Discussion

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.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

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