Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Johnny Willemsen" To: 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/