Chris Saunders <ch************@sympatico.ca> scribbled the following:
I came across a construction in some code I was reading that I have
never seen before and hope that someone could tell me how to
interpret this:
int (*literalScanners[XML_N_LITERAL_TYPES])(const ENCODING *,
const char *,
const char *,
const char **);
It looks like a function declaration to me but the "[XML_N_LITERAL_TYPES]"
part throws me off.
It's declaring an array of pointers to function, not declaring a
function. There are XML_N_LITERAL_TYPES pointers in that array, and
they each point to a function returning int and accepting parameters
(const ENCODING *, const char *, const char *, const char **).
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
|
http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"I wish someone we knew would die so we could leave them flowers."
- A 6-year-old girl, upon seeing flowers in a cemetery