Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Pro*C question

Pro*C question

From: Leo Smith <zhuhw_at_infinet.com>
Date: 1997/02/02
Message-ID: <5d33hn$mqj@mtinsc03.worldnet.att.net>#1/1

Table tab has field f as char[4].
In pc file, var is declared as char[4],

strncpy(var, "abcd", 4);

select ...
from tab
where f = :var;

works when compiled with Proc*C 1.6,

however when code is compiled in Pro*C 2.3, it blows up, it needs var be a null teminated string.

Could anyone explain, is this code problem or Pro*C problem?

Thanks,

Leo Received on Sun Feb 02 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US