Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!inuxc!iuvax!ndmath!nj From: nj@ndmath.UUCP (Narciso Jaramillo) Newsgroups: comp.lang.c Subject: Source file to ANSI declarations Message-ID: <382@ndmath.UUCP> Date: Sat, 21-Nov-87 20:38:46 EST Article-I.D.: ndmath.382 Posted: Sat Nov 21 20:38:46 1987 Date-Received: Mon, 23-Nov-87 07:16:12 EST Organization: Math. Dept., Univ. of Notre Dame Lines: 39 Hello, I'm using Amiga Lattice C v4.0, which supports function argument type checking (e.g. foo(int, char *, int);) like the ANSI standard. Does anyone know of a program that will take a source file, get all its function declarations, convert them to prototypes, and put semicolons after them, so I can create a header file which declares all these external functions? For instance, if I have a source file void foo(arg1, arg2, arg3) int arg1; char *arg2; double arg3; { ... } double bar(test1, test2) int test1; double test2; { ... } I want the output file to look like: void foo(int, char *, double); double bar(int, double); Any suggestions? Thanks, nj. -- nj: ...!{pur-ee, rutgers, uunet}!iuvax!ndmath!nj, ...!ucbvax!mica!nj "I am not a book." -- RMN | __ __ "I am not Richard Nixon." -- GRF | / \ |oo|---- [what game, "I am not referring to myself." -- DRH | \/\/ |__|---- what maker?]