Tom said:
Martin Ambuhl wrote:
Hi Martin, would you elaborate on that, please? Is this a practice
intended to avoid namespace collision with the functions in
<ctype.h>? A style issue? Or what?
I would say that they are reserved for possible future library usage.
The specific question here, using "is" is found in section
7.26 FURURE LIBRARY DIRECTIONS.
The following names are grouped under individual headers for
convenience. All external names described below are reserved
no matter what headers are included by the program.
.....snip........
7.26.2 Character handling <ctype.h>
1 Function names that begin with either is or to, and a lowercase
letter may be added to the declarations in the <ctype.h> header.
The function defined by the op, named "isBlankLine", is OK and is
not reserved. If the op had given the function the name "isblankline",
then you are in collison with the standard reserved names.
I believe Martin is simply suggesting not to use any functions that
begin with "is" because this rule and the other rules is often not
understood or forgotten. This suggestion is a matter of opinion and
preference. IMO the name "isBlankLine" is a good because it is
elucid in describing the function's usage.