From owner-freebsd-questions@FreeBSD.ORG Wed Sep 17 07:45:48 2008 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 1CEFA1065673 for ; Wed, 17 Sep 2008 07:45:48 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57008.mail.re3.yahoo.com (web57008.mail.re3.yahoo.com [66.196.97.112]) by mx1.freebsd.org (Postfix) with SMTP id AC4E18FC0C for ; Wed, 17 Sep 2008 07:45:47 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 60411 invoked by uid 60001); 17 Sep 2008 07:45:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=Ahue+VPfK2Xi5zE+IRDp0/2Jv8lOnC7oZVsHLD3XBqSXU1LvJd25ur+ddD12b6TxNxQpnYTcW42ta+ZH6ZH4jBkY7FviPuQOiOc8Es5SuVhpjP37W5Q5QZ+MKyh3g1A/umTfpXEgkiMyJ6UQ0F+lhRCuz/pSH+mzg6wI4xZXTtY=; X-YMail-OSG: QAP.TmUVM1kUZ5PNE4NzEvHFm_ne2da2gnYYY_piZiTyfx4IzJJolKJPuKliP0rBmsA8_t6q._pmJzyvGQvYoKZfdMOjRRTV4_vIK0q9aRLezA_SZHbGPulnTe3APtuBY9YCC_Vz.iOlIXFmKcv4lUVeAIxa2Bg- Received: from [220.255.7.139] by web57008.mail.re3.yahoo.com via HTTP; Wed, 17 Sep 2008 00:45:46 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Wed, 17 Sep 2008 00:45:46 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <68855.59916.qm@web57008.mail.re3.yahoo.com> Subject: How to split a C string by a string? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 07:45:48 -0000 Hi all I'm writing an C application on FreeBSD 7+. I need to split a string by another string (ie. the delimiter is "xxx") similar to strtok split a string by a single char. Is there a standard function or is there a FreeBSD functions for this? Many thanks in advance. Kind regards Unga