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 23:23:27 +0200 User-Agent: KMail/1.7.2 References: <4235A6A7.9020801@ricom.ru> <4235BB5D.7020109@altlinux.ru> <4235C282.5000701@ricom.ru> In-Reply-To: <4235C282.5000701@ricom.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200503142323.29281.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 21:23:37 -0000 Archived-At: List-Archive: List-Post: return(opt[i]->val); ^^^^^^^^^^^^^ ой! Что я увидел, передавали как ссылку, а вернуть значение структуры хотите ;-) -- Best regards Alexandr R. Ogurtzoff { UNIX is user friendly, it's just picky about who its friends are }