Join multiple lines

Hi

I have a source file ( written i C ) where a funtion call is spread over multiple lines, for example :

func(
a,
b,
c
);

I want this to be joined into one single line :

func(a,b,c);

How can this be done with awk and sed ?

Regards. Hench

Maybe you can try something like this:

awk '/);/{c=0} /func\(/{c=1} c{printf $0;next}1' file > newfile

Thanks Franklin52 !
It works fine.