K&R -> ANSI C formatter

danl at midget.towson.edu danl at midget.towson.edu
Fri Mar 2 16:12:21 AEST 1990


I am in need a some sort of program/script to convert some 140 modules of C
source from a K&R format to a more ANSI C format.  The code now looks like
this:

funcType
func (argc1, argc2...)
type1 argc1;
type2 argc2;
...
{
...
{

And I need it to look like:

funcType func
(
type1 arg1,
type2 arg2
...
) 
{
...
}

Does anyone have any ideas?  I'm not shy about accepting source!  Please
mail responses directly to me as I am not receiving the list at present.

Thanx in advance,
Dan Gosner				Internet: danl at midget.towson.edu
RoadNET Technologies, Inc.,		Bitnet:   DGosner at TOWSONVX
using a guest account, courtesy my old boss.
            %% VMS pays the bills, but it sure ain't Unix. %%



More information about the Comp.unix.questions mailing list