Author: Stan Eisenstat
Subject: Re: [Cs223] Checking for invalid
Date: Sunday, 22 Mar 2020, 21:14:06
> Message Posted By: Unknown
>
> In Deque.c, the functions take the arguments (Deque *d, char *s, char
> **s). How can we check if these arguments are "invalid", or if the Deque
> objects are "inconsistent"? Is there a typeof() function in C?
That depends on what struct you are using internally.
For example, if it has a field whose value should be
a "magic cookie" but is not, then you know that the
argument is invalid.
--Stan-
PREV
INDEX
NEXT