Re: [C] struct, function pointers question

From: Date: Sun, 02 Sep 2001 17:47:56 +0000
Subject: Re: [C] struct, function pointers question
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64907@lists.php.net to get a copy of this message
At 20:41 02-09-01, Jeroen van Wolffelaar wrote:
Hi, I'm sure there's some simple (stupid?) error, which an experienced C-programmer can see immediately... But I don't. You're missing a variable name (you only put a type), and the line is not in the beginning of a code block (there's a statement before it). php_randgen_entry is (supposed to be) a type. php_randgen_entries is (supposed to be) a variable. php_randgen_entries[3] = { ... }; is (supposed to be) a statement.
Ah, I thought that you meant to declare a variable here. The problem is different then - C doesn't support assigning to multiple struct members at once. You can only do that when you initialize a variable. Zeev

« previous php.dev (#64907) next »