In my code example i lay down the principles, but i realise that there are some problems with corner cases, sorry for that: 1) If the strings are NULL, dereferencing them would produce a seg-fault, if NULL == str for both strings would be a nice check 2) In strncmp, the value of n could be actually anything, even though this would make no sense-> i.e n
you will always be in our hearts as you do in our pools char a []= {109, 121, 32, 114, 101, 103, 97, 114, 100, 115, 32, 102, 114, 111, 109, 32, 109, 111, 114, 114, 111, 99, 111, 32}
In my code example i lay down the principles, but i realise that there are some problems with corner cases, sorry for that:
1) If the strings are NULL, dereferencing them would produce a seg-fault, if NULL == str for both strings would be a nice check
2) In strncmp, the value of n could be actually anything, even though this would make no sense-> i.e n
@@mstarodu Thx Bro for the correction 🫡🙏
thank you sir
merci bcp chef tes un bon
Merci a toi!
thank you bro;]
you will always be in our hearts as you do in our pools char a []= {109, 121, 32, 114, 101, 103, 97, 114, 100, 115, 32, 102, 114, 111, 109, 32, 109, 111, 114, 114, 111, 99, 111, 32}
🇲🇦🇲🇦🇲🇦🇲🇦🇲🇦🇲🇦🇲🇦🇲🇦
Sickest comment ever 😜
Very clear! Thanks!!!!
Thx to you!
ft_strncmp has a mistake. if n == 0, it should return 0
Friend u right, in my code i don t check for corner cases i.e. (n