help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting K&R style into ANSI C


From: Volker Dormeyer
Subject: Re: Converting K&R style into ANSI C
Date: Tue, 02 Nov 2004 22:59:46 +0100
User-agent: Wanderlust/2.11.30 (Wonderwall) -- GNU Emacs/21.3.1

Hi,

 //> On Mon, 1 Nov 2004 20:38:05 +0100,
 //> Andre Poenitz <poenitz@htwm.de> wrote:

 ap> Is there a utility to convert a few million lines of K&R style
 ap> function declarations and definitions into ANSI C?

you could try "cproto" it works quite well.

It converts prototypes:

        func (arg1, arg2, arg3)
        int arg1;
        int arg2;
        char *arg3;
        {
        ...
        }

To:

        void func (int arg1, int arg2, char *arg3)
        {
        ...
        }

See man page for details

Regards,
Volker

-- 
 Volker Dormeyer        <volker@ixolution.de>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]