2012/1/17 Mail Mantis <mail.mantis.88 at gmail.com>: > Correct me if I'm wrong, but wouldn't this be better: > (m_captures[1].ptr - s.ptr) / s[0].sizeof; No, it wouldn't. Somehow, I forgot the rules for pointer ariphmetics. Sorry.