why there is no memlen();
Wed Oct 30 06:11:00 GMT 2002
is there any way to get the amount of memory allocated to a
m = (char *)malloc(sizeof(char) * 120);
strcpy(m, "y no memlen");
in the above code strlen(m) will give 11. Is there any way to get the
amount of memory allocated to it, so that it should give 120.
and why there is no memlen() function in libc. any reason for this?
More information about the Gcc-help