7 May
2014
7 May
'14
12:08
On Wednesday 2014-05-07 14:01, Carlos E. R. wrote:
#include <stdio.h> char *strcpy(char *dest, const char *src);
int main(void) { char c[3]; strcpy(c, "fuuuuuuuuuuuuuuuuuuuuuuuuuckme"); printf("%s", c); return 0; }
Just as an example, if you do the above example in Pascal, it will always use the local function, the one defined in the same file.
Well, let it be noted you still did not define a strcpy in the same file. Once you do, it's quite clear what will practically happen: it will either get used, or you get a linker error, depending on the keywords you slap onto your own implementation. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org