why so many?


 
Thread Tools Search this Thread
Top Forums Programming why so many?
# 1  
Old 10-06-2006
why so many?

Hello All!

Why dbx on Solaris shows that strcpy and strncpy have 6 parameters like this?

(dbx) where
=>[1] strcpy(0x4bc1bd3, 0x0, 0x4bc1bd3, 0x3, 0xffbea2b2, 0xff00), at 0xfd632ed

what are they and where I can read about this information?

Thanks.
# 2  
Old 10-06-2006
I know what causes this - in general. I do not know what the specific "thing" on Solaris is.

The standard library is required to have a strcpy prototype like this (minus the "restrict"):
Code:
char *strcpy(char *, char *)

However, in the runtime, the compiler may have an entry point into the underlying library function which is optimized and does not look look like the prototype. This is totally up to the local implmentors of the compiler.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question