From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <13426df10711182048w2c404cd9n93e80508fd461081@mail.gmail.com> Date: Sun, 18 Nov 2007 20:48:36 -0800 From: "ron minnich" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [9fans] question on i386 code Topicbox-Message-UUID: 00aef638-ead3-11e9-9d60-3106f5b1d025 Anybody have a handy function that does this: int instlen(void *x); Given a pointer x to a chunk of x86 binary, return the length of the instruction at x. I can rip code out of libmach, but i'm in a hurry and if the function just exists, it would save me some time ... thanks ron