[freetds] tdsstring.c ansi alias problem
freddyz77 at tin.it
Tue May 6 01:57:28 EDT 2003
Il mar, 2003-05-06 alle 07:40, Craig A. Berry ha scritto:
> At 5:54 PM +0200 5/5/03, ZIGLIO Frediano wrote:
> >If "*(char **) s = src;" is not OK perhaps it's a priority problem... *((char**)s) = src should work better.
> That's not the issue at all. The standard says that the compiler may safely assume two items are in different storage locations if their data types are different. Here you are trying to make the same storage location have two different types.
> I still don't see why the function just doesn't do:
> return (DSTR) *src;
??? where is the assignment ?
DSTR is just a char* casted. DSTR* is a char**. (I explained the reason
for al these casts in a previous mail).
More information about the FreeTDS