Author Topic: Very Very Simple C Question  (Read 4985 times)

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Re: Very Very Simple C Question
« Reply #15 on: June 22, 2009, 12:58:01 pm »
Greate you figured it out.  However, I thought you would use cursor->canvas++ to increase the pointer index.  Using *cursor->canvas++ instead would increment the char at the current index, wouldn't it?  You should verify which way is correct, since it has been a while since I've used c pointers this way.

Offline AGP

  • quad
  • ******
  • Posts: 1615
    • View Profile
Re: Very Very Simple C Question
« Reply #16 on: June 22, 2009, 07:01:24 pm »
That's what happens when you let your fingers do the typing for you! In the code I did it your way, though.