Hi,
Can someone show me how I can measure the amount of bytes that *ptr points to in the following piece of code? I don't know how to do that.
Thanks for your help.
Code:#include <memory.h> int main(int argc, char *argv[]) { char *ptr; ptr = malloc(3); *ptr = "ab"; return 0; }