I am just returning to C programming after a few years absence. Would appreciate your comments on the following two expressions which were passed as arguments in a function call:
(coordinate_set_t * )NULL,
(Line_t **) new_obj
Are the expressions in parentheses casts and was the type being casted defined in a typedef somewhere? Is it legal in ansi C to use a new type created in a typedef statement as a cast? Unfortunately this is part of a very large system and I have not yet found the prototype for the function and its arguments. Thanks.
(coordinate_set_t * )NULL,
(Line_t **) new_obj
Are the expressions in parentheses casts and was the type being casted defined in a typedef somewhere? Is it legal in ansi C to use a new type created in a typedef statement as a cast? Unfortunately this is part of a very large system and I have not yet found the prototype for the function and its arguments. Thanks.