Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!boulder!sunybcs!bingvaxu!leah!itsgw!imagine!pawl11.pawl.rpi.edu!kyriazis From: kyriazis@pawl11.pawl.rpi.edu (George Kyriazis) Newsgroups: comp.lang.c Subject: Re: sizeof(function) - preproposal survey Message-ID: <395@imagine.PAWL.RPI.EDU> Date: 20 Feb 88 05:49:09 GMT References: <11801@brl-adm.ARPA> <1077@dutesta.UUCP> Sender: news@imagine.PAWL.RPI.EDU Reply-To: kyriazis@pawl11.pawl.rpi.edu (George Kyriazis) Organization: RPI Public Access Workstation Lab - Troy, NY Lines: 25 In article <1077@dutesta.UUCP> pjb@dutesta.UUCP (P.J. Brand) writes: >From article <11801@brl-adm.ARPA>, by LINNDR%VUENGVAX.BITNET@CUNYVM.CUNY.EDU: >> I need some help from the readers of comp.lang.c/info-c in preparation >> for making a proposal to X3J11. The gist of my proposal is that the >> sizeof operator, when applied to a function name, would return the >> length of the function rather than the size of a pointer to a function. >> > >Well I wouldn't know of any code that would get into trouble, but >what the ?!#??? should you want to do with the length of a function?? > It is *not* useless. I wanted to get the sizeof() a function when I was writing a program for the PC. Concider writing device drivers and keeping them in a file. The application program can then read the sizeof() the function and then read() the function. On the developers point of view having a sizeof(f()) option will make life a lot easier. Write the function, debug it, and then compile it together with a program that gets the function's size and write()'s it to a file. Any comments?? ******************************************************* *George C. Kyriazis * Gravity is a myth *userfe0e@mts.rpi.edu or userfe0e@rpitsmts.bitnet * \ / *Electrical and Computer Systems Engineering Dept. * \ / *Rensselear Polytechnic Institute, Troy, NY 12180 * || ******************************************************* Earth sucks.