From owner-freebsd-questions@FreeBSD.ORG Wed Jan 18 09:46:23 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6740616A423 for ; Wed, 18 Jan 2006 09:46:23 +0000 (GMT) (envelope-from alexander.pohoyda@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 9815D43D5E for ; Wed, 18 Jan 2006 09:45:57 +0000 (GMT) (envelope-from alexander.pohoyda@gmx.net) Received: (qmail invoked by alias); 18 Jan 2006 09:45:37 -0000 Received: from p54AD97CD.dip0.t-ipconnect.de (EHLO www2.gmx.net) [84.173.151.205] by mail.gmx.net (mp007) with SMTP; 18 Jan 2006 10:45:37 +0100 X-Authenticated: #14602519 Received: from oak.pohoyda.family (localhost [127.0.0.1]) by www2.gmx.net (8.12.10/8.12.10) with ESMTP id k0I9jZHC000489 for ; Wed, 18 Jan 2006 10:45:36 +0100 (CET) (envelope-from apog@oak.pohoyda.family) Received: (from apog@localhost) by oak.pohoyda.family (8.12.10/8.12.10/Submit) id k0I9jZQt000486; Wed, 18 Jan 2006 10:45:35 +0100 (CET) (envelope-from apog) Date: Wed, 18 Jan 2006 10:45:35 +0100 (CET) Message-Id: <200601180945.k0I9jZQt000486@oak.pohoyda.family> From: Alexander Pohoyda To: freebsd-questions@freebsd.org X-Y-GMX-Trusted: 0 Subject: String variable expansion routine 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: Wed, 18 Jan 2006 09:46:23 -0000 Hi folks, Is there a C-function that does string variable expansion like this: "some text $(VARIABLE) text" --> "some text VALUE text" I suppose this functionality is useful for many programs, so I'm looking for a simpe library to link with. Please CC me on reply. Thanks a lot! -- Alexander Pohoyda PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44