× 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.



>From: Joel Fritz <JFritz@sharperimage.com>
>Date: Wed, 23 Jan 2002 13:37:49 -0800
>
>If I recall, isalpha() tests one character at a time.
>
>I think the prototype should look something like this (I didn't test it):
>
>     d isalpha         pr            10i 0 extproc('isalpha')
>     d  testchar                      1    value

That seems sensible, but the other prototype was correct.  The
C prototype is
  int isalpha (int);
But even if the C prototype were this
  int isalpha (char c);
your prototype wouldn't be correct for RPG because of 2 things:
1. C thinks "char" is an integer type, RPG doesn't
2. C thinks "char" is a 4-byte integer type, when it comes to
   parameter passing, and RPG thinks it's 1 byte

The V5R1 EXTPROC(*CWIDEN) can handle these problems for you.
Otherwise, you need to jump through some hoops.  (See the URL
I posted in my previous "isalpha" post.)

Barbara Morris



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.