Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Reply-To: <jwillemsen@remedy.nl>
From: "Johnny Willemsen" <jwillemsen@remedy.nl>
To: <cygwin@cygwin.com>
Subject: Anyone knows of problems with strcspn
Date: Fri, 23 May 2003 15:33:00 +0200
Organization: Remedy IT Expertise BV
Message-ID: <004301c3212f$d4ce1140$6401a8c0@ritedvnlpt>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

Hi,

I am porting an app to Cygwin. I now get strange errors. The code is as
below, with all other compilers this works, but with Cygwin I have to
substract 1 from len, because, when I copy then the string from the buffer
from the given place I get a strange character when printing the string. 

Johnny

Len = strcspn (buffer, delimiter)



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

