From: "Floorguy" Newsgroups: comp.os.msdos.djgpp Subject: Re: string function strcmp Date: Mon, 26 Mar 2001 21:47:14 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Complaints-To: newsabuse AT supernews DOT com Lines: 24 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Sounds an awful lot like homework to me! Try writing it first, upload the code, then maybe someone will take a look at it and give you some pointers, but no one is going to just write it for you "Jason" wrote in message news:b_Nv6.59$2t2 DOT 33543 AT sapphire DOT mtt DOT net... > 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 > >