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

Asked

Viewed 138 times

1

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

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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.