Skip to Content.
Sympa Menu

freetds - RE: [freetds] tdsstring.c ansi alias problem

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Craig A. Berry" <craigberry AT mac.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] tdsstring.c ansi alias problem
  • Date: Tue, 6 May 2003 00:40:33 -0500

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;


--
________________________________________
Craig A. Berry
mailto:craigberry AT mac.com

"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser




Archive powered by MHonArc 2.6.24.

Top of Page