> >> Is there any reson you use bcopy() not memcpy()? > >> If not considder using memcpy() please. :) > > > We couldn't care what you believe, unless you have diffs of your own > > to submit. > > I think the guy there asked if there is any difference, it was just that. I > also don't know bcopy() and would like to know just out of curiosity (I'm > really don't know, isn't not an irony): there's some difference between > bcopy() and memcpy()?
Yes, the order of the arguments. bcopy is intuitive: since you copy FROM somewhere TO somewhere, the arguments are FROM, TO, LENGTH. memcpy has FROM and TO exchanged, which is stupid. Some people argue this is because it is similar to an assignment, where you write DEST = SRC. But function calls are hardly assignments in my book. Miod
