Subject Re: [firebird-support] Empty strings in API
Author Ann W. Harrison
Ivan Prenosil wrote:
>
> Can empty string be represented both as
> - pointer to zero
> - zero pointer
> or is the later one illegal ?
>

It's not illegal - but it's not the same either. A string is an array
and an empty string is an array of one byte containing the value zero.
In some places (e.g. dpb, tpb, etc.) the API will take a pointer value
of zero if the length of the structure is also passed and is zero.

Regards,


Ann