Xref: utzoo comp.lang.c:33572 alt.religion.computers:2028 Path: utzoo!utgpu!cs.utexas.edu!samsung!dali.cs.montana.edu!decwrl!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c,alt.religion.computers Subject: Re: Argument declaration style (WAS: ANSI C prototypes) Message-ID: <14462@goofy.megatest.UUCP> Date: 8 Nov 90 03:55:19 GMT References: <3944.27367fb2@cc.helsinki.fi> Organization: Megatest Corporation, San Jose, Ca Lines: 27 From article <3944.27367fb2@cc.helsinki.fi>, by jaakola@cc.helsinki.fi: ... ) The most significant advantage of the "old" style is that I can ) use the command ) ) grep \)$ *.c ) ) in UNIX or in MS-DOS with the PICNIX utilities to get output like ) ) myfile.c:int foo(a,b) ) mydb.c:BOOL open_db(dbname,audit_file,username,password) ) mydb.c:BOOL get_record(key,buffer,bufferlen) It is a standard convention to do it like so: int foo(a,b) This way you can find the defining occurance of foo with % egrep "^foo(" *.c Sure, I know about "tags", but it is still handy to be able to grep for the definition in column one.