On Thu, 27 Nov 2008, Pritpal Bedi wrote:
Hi Pritpal,
> > #if !defined( StringCchCat )
> > #ifdef UNICODE
> > #define StringCchCat(d,n,s) hb_wcnCpy( (d), (s), (n) - 1 )
> > #else
> > #define StringCchCat(d,n,s) hb_strnCpy( (d), (s), (n) - 1 )
^^^^^^^^^^
> > #endif
> > #endif
> >
> #if !defined( StringCchCat )
> #ifdef UNICODE
> #define StringCchCat(d,n,s) hb_wcncpy( (d), (s), (n) - 1 )
> #else
> #define StringCchCat(d,n,s) hb_xstrncpy( (d), (s), (n) - 1 )
^^^^^^^^^^^
> #endif
> #endif
It should be hb_strncat().
Please also change new function name hb_wcnCpy() to hb_wcnCat()
Sorry for confustion - my typo.
> // Copied from harbour/source/rtl/hbstr.c and renamed.
> char * hb_xstrncpy( char * pDest, const char * pSource, ULONG ulLen )
It's not necessary. hb_strncat() exists in Harbour.
best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour