{{keywords>wiki library source code example reference}} ===== return ===== #include /* including standard library */ //#include /* uncomment this for Windows */ return value; returns a value ===== C Sourcecode Example ===== #include /* including standard library */ //#include /* uncomment this for Windows */ #include #include int yesno( char value1[], char value2[] ){ if ( strcmp( value1, value2 ) == 0) { return 0; } else { return 1; } } int main(void) { char str1[]="ADS"; char str2[]="FJK"; if ( yesno( str1, str1 ) == 0 ) { printf("same\n"); } else { printf("different\n"); } if ( yesno( str2, str2 ) == 1 ) { printf("different\n"); } else { printf("same\n"); } if ( yesno( str1, str2 ) == 0 ) { printf("same\n"); } else { printf("different\n"); } return 0; } output: same same different