From owner-freebsd-questions@FreeBSD.ORG Sat Apr 10 19:14:27 2010 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 97E00106564A for ; Sat, 10 Apr 2010 19:14:27 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 2FC188FC19 for ; Sat, 10 Apr 2010 19:14:26 +0000 (UTC) Received: by bwz8 with SMTP id 8so1807344bwz.3 for ; Sat, 10 Apr 2010 12:14:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.135.219 with HTTP; Sat, 10 Apr 2010 12:14:25 -0700 (PDT) X-Originating-IP: [93.203.44.65] In-Reply-To: <20100410151842.GA99692@thought.org> References: <20100410151842.GA99692@thought.org> Date: Sat, 10 Apr 2010 21:14:25 +0200 Received: by 10.204.74.77 with SMTP id t13mr1982248bkj.7.1270926865713; Sat, 10 Apr 2010 12:14:25 -0700 (PDT) Message-ID: From: "C. P. Ghost" To: Gary Kline Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List Subject: Re: are the are C [or C++] src sites .... 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: Sat, 10 Apr 2010 19:14:27 -0000 On Sat, Apr 10, 2010 at 5:19 PM, Gary Kline wrote: > Rather than re-inventing the wheel over and again, wouldn't > it be nice to have a library of all kinds of functions? > --For kernel use, yes, they would need to be BSD specific... > Not sure what you're meaning here, but the collection of libraries in FreeBSD's source tree (/usr/src/lib) contains A LOT of C functions that you could use as examples... For instance, if you're looking for those typical C functions of the C library that are often used in introductory texts, you want to look at libc, e.g. in: /usr/src/lib/libc/stdlib /usr/src/lib/libc/string /usr/src/lib/libc/gen (...) Then, there are also non-library source files all over /usr/src, that are full of C functions. ;-) Of course, you could always install additional third-party libraries, programs etc. manually or from ports if you need more examples. ideas? > What are you trying to achieve? gary > > PS: As if it weren't obvious, no i haven't had my morning > jolt of java yet.... > Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/