If I am copying literal text into a char array, which do you think is 
better:

strcpy(dest,"LITERAL");

OR

memcpy(dest,"LITERAL",8);

?? I lean towards memcpy because the C run-time reference says that it is 
a builtin function and done in-line. Which I would guess would mean better 
performance. Why don't I just look at the generated code? Because I don't 
have a C compiler for z/OS. I'm writing my code on Linux using GCC.

-- 
Q: What do theoretical physicists drink beer from?
A: An EIN stein.

Maranatha!
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to