hi it worked perfectly for the first time... but it crashed when i ran it again.......
this time it was calling my own implimented libc. evenif i had kept RTLD_NEXT in memcpy. both of my codes are in same file. i m also calling strcpy and many other libc functions after this. for strcpy *(char **)(&true_strcpy) will do??????