P
Preets
Hi,
Can anybody please tell me the difference between memcmp() and
strncmp() functions ?
Can anybody please tell me the difference between memcmp() and
strncmp() functions ?
Preets said:Can anybody please tell me the difference between memcmp() and
strncmp() functions ?
Richard said:strncmp() stops at a null byte as well as at n bytes.
E.g., suppose you have the following:
pete said:Also, strncmp stops at the first difference.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.