[comp.windows.x] Apollo TMLib/CSM Source Archive

laporta@APOLLO.COM (John X. Laporta) (05/20/89)

A new source archive for Apollo TMLib/CSM is on contrib.
It incorporates a single small change, so users who have
already ftp'd the previous archive may find it to their
advantage to make the change manually in their own copy
of the single file affected.

The names of the formal arguments to the typedef'd
function pointer COPY_FUNC in the previous version of
source file char_set_mgr.hxx are misleading. The former
profile was:

    typedef char* (*COPY_FUNC)(char* to, char* from, long nbyte);

The correct profile in the new archive is:

    typedef char* (*COPY_FUNC)(char* from, char* to, long nbyte);

The copy function copies "nbyte" bytes in the source string "from"
to the destination string "to". The function returns "to" if it
succeeds and NULL otherwise. The copy is without respect to the
value of the bytes copied; therefore UNIX strncpy(), since it exits
on NULL bytes, is not a suitable candidate. The BSD UNIX function
bcopy() and the SYSV UNIX function memcpy() are suitable when used in
a wrapper or macro that returns the correct type and value.

Thank you for your patience.

                            John
                            laporta@apollo.com

-------