This is the mail archive of the
mailing list for the Cygwin project.
Re: Anyone knows of problems with strcspn
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Johnny Willemsen <jwillemsen at remedy dot nl>
- Cc: cygwin at cygwin dot com
- Date: Fri, 23 May 2003 09:46:16 -0400 (EDT)
- Subject: Re: Anyone knows of problems with strcspn
- Reply-to: cygwin at cygwin dot com
On Fri, 23 May 2003, Johnny Willemsen wrote:
> 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.
> Len = strcspn (buffer, delimiter)
FYI, strcspn() is used within the code for Cygwin itself (properly), so it
can hardly be faulty in such a broad way. You will have to provide more
of the code that exhibits the problem, the exact compilation flags you
used, and, perhaps, the data that resulted in this behavior (a complete
*simple* testcase with instructions on how to reproduce this would be
perfect). Once people can reproduce your problem, they can start figuring
out why it happens. It would also help if you mentioned which versions of
Cygwin and gcc you are using (the output of "cygcheck -svr" *attached*, as
per <http://cygwin.com/problems.html>, will contain this information).
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html