|
@@ -195,7 +195,7 @@
|
|
|
* structure <b>st</b>. Example:
|
|
* structure <b>st</b>. Example:
|
|
|
* <pre>
|
|
* <pre>
|
|
|
* struct a { int foo; int bar; } x;
|
|
* struct a { int foo; int bar; } x;
|
|
|
- * off_t bar_offset = offsetof(struct a, bar);
|
|
|
|
|
|
|
+ * ptrdiff_t bar_offset = offsetof(struct a, bar);
|
|
|
* int *bar_p = STRUCT_VAR_P(&x, bar_offset);
|
|
* int *bar_p = STRUCT_VAR_P(&x, bar_offset);
|
|
|
* *bar_p = 3;
|
|
* *bar_p = 3;
|
|
|
* </pre>
|
|
* </pre>
|