Re: First C program

Barbara Morris <[email protected]>
Newsgroups gmane.comp.lang.as400.c
Message-ID <[email protected]>
On 2014-04-01 09:44, Jevgeni Astanovski wrote:
> Frank,
>
> read your code and found something new for myself.
> You write:
>    if ((pf = _Ropen(PFILENAME, "rr")) EQ NULL)
> I would write it:
>    if ((pf = _Ropen(PFILENAME, "rr")) == NULL)

There is a macro defining EQ as ==

#define EQ      ==

I think the EQ is being used to avoid coding = by mistake.

-- 
Barbara

-- 
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.