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 - printing varchar

Pro*C Question - printing varchar

From: Kareem Nutt <methodmano_at_gmail.com>
Date: Thu, 14 Oct 2004 20:10:39 -0400
Message-ID: <WOqdnTO_P-DCi_LcRVn-3Q@comcast.com>


I have the following:

varchar name[21];
... select statement puts value into name ... ....
name.arr[name.len] = '\0';
printf ("name is %s.\n", name.arr);

Example of what I get when I do this I get:
"name is bob."

What I want is to have all the extra spaces printed out as well:
"name is bob."

Anyone know how to do this? Received on Thu Oct 14 2004 - 19:10:39 CDT

Original text of this message

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