In the following segment of code:
if (buffer + strlen(buffer) >= len -1) beep();
note: len is an int, buffer is a pointer to char.
I don't understand how would someone add buffer (a pointer) to the strlen() of a string and compare it to len. Can any one please help me.
note: the actual code link is http://www.finseth.com/craft/#intro.1.4
any help will be greatly appreciated.
buffer + (strlen(buffer) >= len) - 1