From owner-freebsd-questions@FreeBSD.ORG Mon Oct 19 03:46:23 2009 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 4796D106566B for ; Mon, 19 Oct 2009 03:46:23 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 053108FC12 for ; Mon, 19 Oct 2009 03:46:22 +0000 (UTC) Received: from r55.edvax.de (port-92-195-71-245.dynamic.qsc.de [92.195.71.245]) by mx01.qsc.de (Postfix) with ESMTP id 679173CA51; Mon, 19 Oct 2009 05:46:22 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n9J3kKt1002589; Mon, 19 Oct 2009 05:46:21 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 19 Oct 2009 05:46:20 +0200 From: Polytropon To: Robert Huff Message-Id: <20091019054620.9cc1b05c.freebsd@edvax.de> In-Reply-To: <19163.56681.724615.44106@jerusalem.litteratus.org> References: <20091019013337.GA9522@thought.org> <20091019040229.b4e11bbc.freebsd@edvax.de> <4ad871310910181916q655dec06k72b1e7577751751e@mail.gmail.com> <19163.56681.724615.44106@jerusalem.litteratus.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Polytropon , Glen Barber , FreeBSD Mailing List Subject: Re: need C help, passing char buffer[] by-value.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2009 03:46:23 -0000 On Sun, 18 Oct 2009 23:30:49 -0400, Robert Huff wrote: > > Glen Barber writes: > > > >> // redo, skip TAGS > > > > > > Is this C or C++ source code? I always thought // was C++ > > > specific... > > > > > > > "//" comments are recognized by both C and C++. > > How about "... are recognized by both C++ and more recent versions > of C."? That's what I thought. In fact, I *had* C programs containing the // comments, but they failed to compile. After changing the // to /* ... */ it worked. Maybe that's not an issue anymore, but I've been told by a long-time C programmer that // should be kept out of C code for maximum compatibility. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...