piclist 2001\07\11\083720a >
Thread: correct typecast to pass pointers in Hitech C
face BY : mikeKILLspam@KILLspamwhitewing.co.uk

Given a procedure to read a number of bytes from 16F87x internal
eeprom to a given address :
void readeeprom(char address,char nbytes,char *dest)
do {  RD=1; *dest++=EEDATA; EEADR++;}  while(--nbytes);

The following calls give "illegal conversion of integer to pointer
(warning)" but do generate correct code and work correctly :

It's not a major problem but it would be nice to know the 'correct'
way to do it to avoid the warning messages.

http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

<otdoktcqn44gd13vr6ghgneagh1oee3j6d@4ax.com> quoted-printable

See also: www.piclist.com/techref/microchip/languages.htm?key=c
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) correct typecast to pass pointers in Hitech C

month overview.

new search...