First C Program
Frank Kolmann <[email protected]>
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <CAB-SQvj2FHWZDTmfpnF-drPMzvnAJmv14EeA3L8XPqv1PFWu_A@mail.gmail.com> |
Hi James Thank you for your reply. You have corrected an impresion I had. hmmm I am tempted to use a macro to code !> as <>. FWIW I got the guidelines directly from Paul Contes book. Looks like you have discovered a typo in the book. Yes you are correct I ported an RPG program to C as a training exercise, but also I had in mind 2 other goals. 1. How to use the i5 data base using record I/O in C 2. Compare an RPG program with an equivalent C. I believe the exercise has opened my mind to the world of C on the i5. Without the 'function libraries' C is a very limited and difficult. With the function libraries C becomes as practical as any other language. Possibly the only place C would be used without function libraries is on PLC controllers but even then I doubt that. Frank >*Subject: Re: First C program > *From: "James H. H. Lampert" <jamesl@xxxxxxxxxxxxxxxxx> > *Date: Wed, 02 Apr 2014 14:08:52 -0700 > > >2. (and possibly NE instead of <>), > > >Uh, I don't think I've ever encountered a C compiler >for which "<>" had any meaning whatsoever. >In C, the "not equal" operator is "!=" rather than "<>" >(and that is also true of such C-derived languages as Java). > >And what is the point of porting an RPG program into C, >unless it's simply a training exercise? > >-- > JHHL Kind Regards -- 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.