< Prev
Next >

C strncmp() method

The strncmp() is a string function defined in the string.h header file, which is used to compare the first n number of characters of a string to the another string.

Signature of strncmp() function

int ( char * str1, const char * str2, size_t num )

Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
C++ and Python