From: "Jason" Newsgroups: comp.os.msdos.djgpp Subject: string function strcmp Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Mon, 26 Mar 2001 20:52:23 GMT NNTP-Posting-Host: 142.177.236.202 X-Complaints-To: abuse AT mpoweredpc DOT net X-Trace: sapphire.mtt.net 985639943 142.177.236.202 (Mon, 26 Mar 2001 16:52:23 AST) NNTP-Posting-Date: Mon, 26 Mar 2001 16:52:23 AST Organization: MPowered-Subscriber To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Can someone help me write a program having a user-defined function that compares two strings and outputs a message saying whether the two words represented by the strings are the same. The function needs to have a void function, use the string function strcmp. By using the following strings: char word1[] = "Apple"; char word2[] = "Apple"; char word3[] = "orange"; compare word1 and word2, word2 and word3, word3 and word1