*Test('Function Arguments')(4)
This may work, but this is unknown: What kind of syntax errors it will generate.
--- On Sat, 8/28/10, Pedro <[email protected]> wrote:
From: Pedro <[email protected]>
Subject: [c-prog] Can a function return an array of 4 pointers?
To: [email protected]
Date: Saturday, August 28, 2010, 4:41 PM
struct four_pointers
{
char *a[4];
};
typedef struct four_pointers four_pointers;
Is it possible for a function to return an array of 4 pointers to char without
encapsulating them inside a struct?
I know it is impossible to have an automatic variable length array. But the
array I'd like to return have a definite length of 4 pointers.
Can you quote from the current Committee Draft ISO/IEC 9899:201x ?
[Non-text portions of this message have been removed]