Re: VARCHAR and strcpy compiler warnings
From: Richard Jones <rick.jones_at_city.moncton.nb.ca>
Date: 1996/07/04
Message-ID: <4rgai1$s0i_at_news.nstn.ca>#1/1
Richard Jones
Information Systems
City of Moncton
Voice: (506) 853-3586
FAX: (506) 853-3504 Received on Thu Jul 04 1996 - 00:00:00 CEST
Date: 1996/07/04
Message-ID: <4rgai1$s0i_at_news.nstn.ca>#1/1
On Thu, 4 Jul 1996 00:01:09 -0400, Bill Jones <wjones14_at_csc.com> wrote:
>Anyone know how to eliminate the compiler warnings you get when trying to
>compile a Pro*C program that have to do with VARCHAR declarations? Like
>in sample7.pc:
>
>VARCHAR sqlstmt[400];
>
>strcpy(sqlstmt.arr,"SELECT field from table");
>
>
Any example I've seen uses an explicit cast to char*:
strcpy((char *)sqlstmt.arr, "SELECT field from table");
Hope that helps.
Richard Jones
Information Systems
City of Moncton
Voice: (506) 853-3586
FAX: (506) 853-3504 Received on Thu Jul 04 1996 - 00:00:00 CEST