Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!brl-adm!adm!LINNDR%VUENGVAX.BITNET@wiscvm.wisc.edu
From: LINNDR%VUENGVAX.BITNET@wiscvm.wisc.edu
Newsgroups: comp.lang.c
Subject: Size of a function
Message-ID: <2100@brl-adm.ARPA>
Date: Sat, 3-Jan-87 15:46:10 EST
Article-I.D.: brl-adm.2100
Posted: Sat Jan  3 15:46:10 1987
Date-Received: Sat, 3-Jan-87 21:52:50 EST
Sender: news@brl-adm.ARPA
Lines: 13


        To the best of my knowledge, there is no way currently defined in
C to get the size of a function, in any units. My immediate interest is
in telling what function an address belongs during run-time. The only
solutions I know of involve an intimate knowledge of the relocatable file
(esp. the symtab) format. Is there a good way to determine this value?

It might be nice if sizeof(function_name) could be defined to return this
value.

David Linn
LINNDR%VUENGVAX.BITNET@WISCVM.WISC.EDU          | Internet
...!psuvax1!vuengvax.bitnet!linndr              | UUCP