From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-POP-User: nivanova.hostopia.com From: "Alexandr R. Ogurtzoff" Organization: Hostopia To: community@altlinux.ru Subject: Re: [Comm] send pointer on struct to function in C Date: Mon, 14 Mar 2005 18:01:38 +0200 User-Agent: KMail/1.7.2 References: <4235A6A7.9020801@ricom.ru> In-Reply-To: <4235A6A7.9020801@ricom.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200503141801.39192.aogurtsov@hostopia.com> X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 16:01:48 -0000 Archived-At: List-Archive: List-Post: > далее я ее инициализирую > Options cmd = { >    {"user", "vasya"}, >    {"host", "vasya@com.ru") ^^^ >} А по моему в Си так вы не инициализируете... cmd - массив структур? struct Options cmd[]={ {"user", "vasya"}, {"host", "vasya@com.ru"} }; Это как минимум А вообще то надо бы вам Кернигана с Ричи почитать ;-) -- Best regards Alexandr R. Ogurtzoff { UNIX is user friendly, it's just picky about who its friends are }