Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 77246 - isblank() not properly prototyped in /usr/include/ctype.h
Summary: isblank() not properly prototyped in /usr/include/ctype.h
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2002-11-04 06:41 UTC by greg hosler
Modified: 2016-11-24 15:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2002-11-04 06:41:27 UTC

Attachments (Terms of Use)

Description greg hosler 2002-11-04 06:41:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
man isblank, gives usage or "isblank()", yet the following program
yields at error when compiled (warning actually, but it shouldn't).

#include <ctype.h>
int main()
        char a;
        int i = isblank(a);

# gcc -Wall -o fooey foo.c
foo.c: In function `main':
foo.c:5: warning: implicit declaration of function `isblank'

Note: isblank() should NOT be seen by the compiler as "implicitly defined"

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. See sample code snippet above

Actual Results:  erroneous warning message. Note that w/o proper prototyping,
time argument mismatches would be properly converted to correct argument type.

Expected Results:  no warning message.

Additional info:

This same bug existed in Red Hat 7.3

Comment 1 Jakub Jelinek 2002-11-04 09:05:45 UTC
Please RTFM info libc about feature set macros.
isblank is only specified in ISO C99, so you either get it when compiling
with -std=c99, -std=gnu99 or -D_ISOC99_SOURCE.

Note You need to log in before you can comment on or make changes to this bug.