<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><span style="font-weight:bold;">Hi Peter</span>,<br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="y_msg_container"><div id="yiv8622734639"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div class="yiv8622734639y_msg_container">> I think you need to read up C basics on pointers to structures and their<br>> components. When you write |(* _mc).s| then that's not a cast but a<br>> access to the component of the struct. But because that reads weird and<br>> is
 used very often, C has the -> operator for this, so write |_mc->s|<br>> instead. (You should usually also ensure that _mc is valid before<br>> dereferencing it like this.)<br><span style="font-weight:bold;"><span id="yiv8622734639result_box" class="yiv8622734639short_text" lang="en"><span class="yiv8622734639hps">Why</span> <span class="yiv8622734639hps">I find it strange</span>
 <span class="yiv8622734639hps">that</span></span> it's because I never used something like</span><span> (* _mc).s </span><span style="font-weight:bold;">before, I know </span><span>-></span><span style="font-weight:bold;"> and I use it but I didn't thought about it when I wrote this piece of code...<br><br>...and sorry about the word "cast" I thought that's the word to say "dereferencing" in english... (Our president want to reinforce the learning of english at university, I guess he should...)<br></span><br>>(You should usually also ensure that _mc is valid before<br>>dereferencing it like this.)<br><span style="font-weight:bold;">Yes, I take care of that.</span><br><br>>But I guess all this is pretty off-topic for this list.<br><span style="font-weight:bold;">thanks for that critic<br><br>thx for all Peter,<br>-Nicoo</span><br><br><br></div> </div> </div>  </div></div></div><br><br></div> </div> </div>  </div></body></html>