Subject | Re: [firebird-support] Empty strings in API |
---|---|
Author | Ann W. Harrison |
Post date | 2005-05-20T21:29:58Z |
Ivan Prenosil wrote:
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
>It's not illegal - but it's not the same either. A string is an array
> Can empty string be represented both as
> - pointer to zero
> - zero pointer
> or is the later one illegal ?
>
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