HelloMoon
HelloMoon

Reputation:

How to provide something like nil to this parameter?

I have a parameter like this:

rightOperand:(const NSDecimal*)rightOperand

how could I provide a value that represents "nothing" or "empty"? would that be void? i.e.

[myObj rightOperand:void];

or something different? Or is that impossible for structs?

Upvotes: 0

Views: 63

Answers (1)

Wevah
Wevah

Reputation: 28242

A null C pointer is simply NULL.

Upvotes: 1

Related Questions