From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 19:19:32 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE0DF16A418 for ; Tue, 23 Oct 2007 19:19:32 +0000 (UTC) (envelope-from h.schmalzbauer@omnisec.de) Received: from host.omnisec.de (host.omnisec.de [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 3A13113C4B2 for ; Tue, 23 Oct 2007 19:19:31 +0000 (UTC) (envelope-from h.schmalzbauer@omnisec.de) Received: from [192.168.1.69] (e181014057.adsl.alicedsl.de [85.181.14.57]) (authenticated bits=0) by host.omnisec.de (8.13.8/8.13.8) with ESMTP id l9NIixh2043006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 23 Oct 2007 20:44:59 +0200 (CEST) (envelope-from h.schmalzbauer@omnisec.de) X-Authentication-Warning: smtp.dmz.omnisec.de: Host e181014057.adsl.alicedsl.de [85.181.14.57] claimed to be [192.168.1.69] From: Harald Schmalzbauer Organization: OmniSEC To: freebsd-questions@freebsd.org Date: Tue, 23 Oct 2007 20:44:52 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Message-Id: <200710232044.53240.h.schmalzbauer@omnisec.de> Content-Type: Multipart/Mixed; boundary="Boundary-00=_lEkHH7/TPp326M0" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Mentor for C self study wanted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2007 19:19:32 -0000 --Boundary-00=_lEkHH7/TPp326M0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I'm abaout to learn C (really learn it, not just to be able to tinker arround with). So I bought a book which has some practices in each chapter. Now I wrote the little programs and they were almost correct, but the things going wrog aren't explained in that book. Probably it has to do with the compiler, at least it was the case in one example. So I wanted to ask if somebody could be so kind and answer me occasional questions by private mail. The first one was for example the attached code: Why does it segfault? Thanks in advance, -Harry P.S. I will change comment language of course. I'm UTC -1 --Boundary-00=_lEkHH7/TPp326M0--