From owner-freebsd-questions@FreeBSD.ORG Thu Oct 25 19:08:54 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 F199A16A469 for ; Thu, 25 Oct 2007 19:08:54 +0000 (UTC) (envelope-from b.movaqar@adempiere.org) Received: from kedah.mschosting.com (kedah.mschosting.com [202.75.42.90]) by mx1.freebsd.org (Postfix) with ESMTP id 970AF13C48A for ; Thu, 25 Oct 2007 19:08:54 +0000 (UTC) (envelope-from b.movaqar@adempiere.org) Received: from [87.107.63.161] (port=57051 helo=attila) by kedah.mschosting.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Il84S-0000Sz-1L; Fri, 26 Oct 2007 03:08:45 +0800 Date: Thu, 25 Oct 2007 22:38:00 +0330 From: "Bahman M." To: Bill Moran Message-ID: <20071025223800.6c574944@attila> In-Reply-To: <20071025112715.baa0768f.wmoran@potentialtech.com> References: <200710232324.09851.h.schmalzbauer@omnisec.de> <200710251502.l9PF209C064013@lurza.secnetix.de> <20071025112715.baa0768f.wmoran@potentialtech.com> X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - kedah.mschosting.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - adempiere.org X-Source: X-Source-Args: X-Source-Dir: Cc: Oliver Fromme , freebsd-questions@FreeBSD.ORG, h.schmalzbauer@omnisec.de Subject: Re: 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: Thu, 25 Oct 2007 19:08:55 -0000 On 2007-10-25 Bill Moran wrote: > In response to Oliver Fromme : > > > Harald Schmalzbauer wrote: > > > > > > #include > > > > > > void main() > > > > That's not a C program. :-) > > > > The return value of the main function of a valid C program > > must be int. And of course, your main function should > > end with "return 0;" or "exit(0);" (the latter requires > > "#include " at the top). > > > > By the way, I recommend you get a copy of the C standard > > and use it for reference. You can buy a digital copy (PDF) > > at http://webstore.ansi.org/ (Search for "9899-1999"), > > it's $30. Alternatively ask Google for "C99 draft" to get > > a free copy of a draft of the standard, which isn't very > > different from the final standard. > > > > You can also buy a hardcopy of the standard (i.e. a book), > > but it was ~ $300 last time I looked. > > If we're recommending books, I can't say enough good things > about the Kernighan and Richie C book: > http://www.amazon.com/C-Programming-Language-2nd/dp/0131103628/ref=pd_bbs_2/105-1904293-7155604?ie=UTF8&s=books&qid=1193326006&sr=1-2 > No doubt the most valuable book on programming I've ever read. Not only it teaches programming but also a style of thinking and designing. -- Bahman Movaqar You can't write poems about trees when the woods are full of policemen. -Bertolt Brecht