www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/26/16:02:08

From: "Jason" <jstewart1 AT ns DOT sympatico DOT ca>
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: <b_Nv6.59$2t2.33543@sapphire.mtt.net>
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019