PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] Followup on additional Deque.c functions
Date: Monday, 23 Mar 2020, 07:18:11


    > Message Posted By: Unknown
    >
    > In a previous post, you said that we cannot make auxiliary functions in
    > Deque.c because we must include Hwk4/Deque.h
    >
    > However, my Deque.c includes Hwk4/Deque.h (not a local copy) and also has
    > an auxiliary function that both remD() and headD() call. This function's
    > prototype is defined within Deque.c and therefore my Deque.c successfully
    > works with the Hwk4/Deque.h header file.
    >
    > Is this type of aux function allowed? Thank you.

Sorry, I misinterpreted the question as asking whether
the Deque ADT interface could be expanded.

Yes, you may declare helper functions within your Deque.c.
Such functions should be declared as static (so that they
cannot be accessed from another source file and thus are
not called directly by Qsort).

Thanks for pointing this out.

--Stan-
PREV INDEX NEXT