Message-Id: <10609.116150@fatcity.com> From: Uma Sankara_Sivadanam Date: Mon, 4 Sep 2000 19:03:03 +0530 Subject: RE: oracle Pro C question This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C01674.A8664450 Content-Type: text/plain Hi, I don't know much of pro*c .But if you are using a standard C function like strcpy() , it automatically adds a NULL char at the end. If this is not the case then use strcat() function. Hope this helps you. Uma Sankar > ---------- > From: John Dunn[SMTP:john.dunn@sefas.co.uk] > Reply To: ORACLE-L@fatcity.com > Sent: Monday, September 04, 2000 2:53 AM > To: Multiple recipients of list ORACLE-L > Subject: oracle Pro C question > > > > > -----Original Message----- > > From: Jamie Pearce > > Sent: 01 September 2000 17:25 > > To: John Dunn > > Subject: oracle question > > > > Can you post this piss easy question to your Oracle group - I've wasted > > too much time trying to do it. > > > > I have an Oracle field on a table defined as VARCHAR2(200) and a C host > > variable defined as char mystring[200]. > > > > How do I select the oracle field in to the C host variable so that a > null > > character automatically gets appended to the string? > > e.g. if the Oracle field contained "hello" then the C host variable > would > > contain "hello\0" with no extra blanks? > > > > ------_=_NextPart_001_01C01674.A8664450 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: oracle Pro C question

Hi,

I don't know much of = pro*c .But if you are using a standard C function like strcpy() , it = automatically adds a NULL char at the end.

If this is not the = case then use strcat() function.
Hope this helps = you.


Uma Sankar