14

buffer in C

view full story
linux-howto

http://www.unix.com – Hello, Quote: size_t write(int fd, const void *buf, size_t count) { static size_t (*write_func)(int, const void *, size_t) = NULL; if (!write_func) write_func = (size_t(*)(int, const void *, size_t)) dlsym(RTLD_NEXT, "write"); char tmp[count]; memcpy(tmp,buf,count); printf(" %c \n",tmp[1]); } i try to dispaly tmp[1] but it displayed special characters like '?' Have you an idea please Thank you (HowTos)