[cc65] C question

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2002-12-12 20:16:44


Ok, what stupid little error am I making here?

I have a structure with a char pointer to some memory I malloced and I want to access one byte from that structure:

data = bmp->dat[((10 * y) + byte)];


I get this:

data equal to ((10 * y) + byte) !


¯
Shawn


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-12-12 20:17:07 CET