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



The doc is correct - an asterisk means "this is a pointer", not a comment.

enum is a special C construct that means, in this case, an integer with a limited set of values that normally start with 1 - this is declared elsewhere and described in this page as having 4 values, from 1 to 4.

Because that parameter has no asterisk, it is passed by value.

See my other reply for more info.

Cheers
Vern

On 3/23/2017 6:48 AM, Rob Berendt wrote:
I question the documentation at
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_71/apis/eimaddassociation.htm
Granted IDK enough about C to make a call on this but it just doesn't seem
right

First I looked at this

int eimAddAssociation(EimHandle * eim,
enum EimAssociationType associationType,
EimIdentifierInfo * idName,
char * registryName,
char * registryUserName,
EimRC * eimrc)

then I looked at the example given later in the program and it really
makes me question the above.
1 - I think there should be an asterisk in front of associationType to
make it as a comment.
2 - At first I thought enum might be a null indicator or some such thing
but now I'm thinking it's clutter that should be removed as I do not see
it used later in the example.


Rob Berendt


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.