Re: VARCHAR and strcpy compiler warnings
Date: 1996/07/04
Message-ID: <4rgplr$ha1_at_atlas.aethos.co.uk>#1/1
rick.jones_at_city.moncton.nb.ca (Richard Jones) wrote:
>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
IIRC, it's defined as unsigned char when pro*c has finished with it,
and this is what's causing the warnings
Steve. Received on Thu Jul 04 1996 - 00:00:00 CEST