I came across a code where the function definition is like this
void testname(input, arg0, arg1)
char *input;
{
char buffer[BUF_SIZE];
char *ptr;
sprintf(testnamebuf, input, arg0, arg1);
ptr = buffer;
sprintf(ptr, "%s", testnamebuf);
}
Could someone explain me how the function definition is working? It's a weird way of defining the function and it's the first time I'm seeing such a code.