2 ms·
IIRC some old unix book recommended splitting type declaration, prototype and body on different lines, like this: int myFunc(char *str, int strlen)
by znpy 6y ago
IIRC some old unix book recommended splitting type declaration, prototype and body on different lines, like this:
int
myFunc(char *str, int strlen)
{
<body>
}
with the rationale being that grepping for ^myFunc (or searching for it in vi) would have found the function declaration immediately.
Not sure I like that, anyway.
- deleted 6y ago[deleted]