What is the difference between the streql () and strcmp () functions of the header string.h?

1

Both return 1 if two strings are equal and 0 if they are different right?

    
asked by anonymous 20.05.2015 / 17:23

1 answer

2

strcmp(s1,s2) returns a negative number if s1 < s2, returns zero if s1 = s2 and returns a positive number if s1 > s2.

The streql function is not part of the C standard and is an extension provided by your compiler or some other library you are using.

    
20.05.2015 / 17:30