cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/17/13:46:04

Message-ID: <35D86C29.2164@geocities.com>
From: Spiritseeker <spiritseeker AT geocities DOT com>
Reply-To: spiritseeker AT geocities DOT com
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Trouble using "/?" and "argv" with c++
Lines: 11
Date: Mon, 17 Aug 1998 17:45:07 GMT
NNTP-Posting-Host: 130.244.200.212
NNTP-Posting-Date: Mon, 17 Aug 1998 19:45:07 MET DST
Organization: A Customer of Tele2
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

How can I use "/?" with "argv" in c++ mode?

This works: if (strcmp(argv[1],"-?") == 0)
but this won't: if (strcmp(argv[1],"/?") == 0)

Same code works fine in "c" mode. 

Thanks in advance,
/Jonas

- Raw text -


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