× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.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

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.