[unixODBC-support] Unicode and Wide Char strings

Nick Gorham nick at lurcher.org
Tue Oct 19 11:46:01 BST 2010


Neha Avasthy wrote:
> You mean alloca here right?? (As a parameter to the function call)  . 
> I was going through the man pages for alloca and this is what I see
>
> BUGS
>        The alloca function is machine and compiler dependent. On many 
> systems
>        its implementation is buggy. Its use is discouraged.
>
>        On many systems alloca cannot be used inside the list of 
> arguments  of
>        a  function  call,  because  the  stack space reserved by 
> alloca would
>        appear on the stack in the middle of the space for the 
> function  argu-
>        ments.
>
> Wondering if this is safe to use ??? Dont want to get stuck with 
> undefined behavior and non portable code again.
>
> Thanks
> -Neha
Maybe not then.

-- 
Nick


More information about the unixODBC-support mailing list