isprint core dump

Jon Clugston jon.clugston@gmail.com
Mon Jan 23 20:25:00 GMT 2012


On Mon, Jan 23, 2012 at 3:16 PM, Nellis, Kenneth
<Kenneth.Nellis@acs-inc.com> wrote:
> I haven't had the chance to try under Linux, but
>  isprint(3055872)
> is core-dumping on me. Here's a STC:
>
> ======================================
> #include <stdio.h>
> #include <ctype.h>
>
> int main (void)
> {
>    int a = 3055872;
>    int b = isprint(a);
>    printf ("%d %d\n", a, b);
>    return 0;
> }
> ======================================
>

Whatever you are trying to do, you are using the wrong tool for the
job.  "isprint()" should be passed a "char", in fact it only works on
ASCII characters.

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



More information about the Cygwin mailing list