Re: C version of ADDLC on very long variables

"Elvis Budimlic" <ebudimlic-Ebbh53c6wcYkzXN11fiE55igCaZBIYHkAL8bYrjMMd8@public.gmane.org>
Newsgroups gmane.comp.lang.as400.mi
Message-ID <01db01c6e894$007af5e0$6e01a8c0@VMHXP>
Gene, 

I thought any MI built-in can be called, even if not wrapped by IBM into a C
api, but I can't find that one in any of the system header files.  Usually
linkage pragma is used, i.e.:

#pragma linkage( _CLRBTS,  builtin )

followed by the function prototype definition, i.e.:

void _CLRBTS ( void *, unsigned );

Same doesn't work for ADDLC so I can only guess it's not made available by
IBM as bindable C interface.

What exactly does ADDLC do? 
(sorry, I don't code in MI yet but maybe when I get some free time...)

>From what I gathered it concatenates two character strings, right?
If I interpreted correctly, strcpy followed by strcat would work on null
terminated strings, or 2 memcpy-s for non-null terminated string.  
I probably interpreted ADDLC description wrong.

Sorry for raising more questions than answering...

Elvis

-----Original Message-----
Subject: Re: [MI400] C version of ADDLC on very long variables


By the way, I do not see an ADDLC in C's "Machine Interface Library
Functions", nor do I see an ADDLC in the list of ILE built-ins. 



_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.
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.