Re: VARCHAR variable problem

From: Tomas Zakrzewski <zakrzews_at_pegasus.montclair.edu>
Date: 1996/02/21
Message-ID: <zakrzews.824955148_at_pegasus.montclair.edu>#1/1


Swapan Jha <sjha_at_us.oracle.com> writes:

>Hi,
> Try printing countName.arr NOT countName because countyName is a
>struct
>
> countyName.arr[countyName.len] = '\0';
> printf("%s\n", countyName.arr);
 

> return;
 

>sj
    

    You have to make sure that sizeof(countyName.arr) == size of VARCHAR + 1 for null

Tom Z. Received on Wed Feb 21 1996 - 00:00:00 CET

Original text of this message