delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/27/02:33:31

From: "Tanes Sriviroolchai" <tanes AT thaipo DOT thailand DOT ncr DOT com>
Subject: Re: strcmp: "makes pointer from integer without a cast"
References: <3 DOT 0 DOT 5 DOT 32 DOT 19980426151354 DOT 007c65b0 AT 200 DOT 252 DOT 238 DOT 1>
Organization: NCR (Thailand)
Message-ID: <01bd7183$2b0a6d40$ad887fc0@tanes>
Newsgroups: comp.os.msdos.djgpp
Date: Sun, 26 Apr 1998 22:07:14 -0400
Lines: 11
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Add line
#include <string.h>
at the first line of your code (before main(...)).
						Tanes Sriviroolchai

Thiago F.G. Albuquerque <thiagofga AT ambr DOT com DOT br> wrote in article
<3 DOT 0 DOT 5 DOT 32 DOT 19980426151354 DOT 007c65b0 AT 200 DOT 252 DOT 238 DOT 1>...
> {
> 	if (strcmp(strupr(argv[1]),"/H")==0)
> 		{
> 
> The compiler (gcc) gives this "Warning:  passing arg 1 of `strcmp' makes
> pointer from integer without a cast."
> 

- Raw text -


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