Copying Strings with jdeStrcpy or jdeStrncpy

When copying strings of the same length, such as business unit, you may use the jdeStrcpy ANSI API. If the strings differ in length-as with a description-use the jdeStrncpy ANSI API with the number of characters you need returned, not counting the trailing NULL character.

/**********************************************************
 * Variable Definitions
 **********************************************************/
 JCHAR      szToBusinessUnit(13);
 JCHAR      szFromBusinessUnit(13);
 JCHAR      szToDescription(31);
 JCHAR      szFromDescription(41);
/**********************************************************
 * Main Processing
 **********************************************************/
   jdeStrcpy((JCHAR *) szToBusinessUnit,
             (const JCHAR *) szFromBusinessUnit );


   jdeStrncpy((JCHAR *) szToDescription,
              (const JCHAR *) szFromDescription,
              DIM(szToDescription)-1 );