cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/15/04:32:34

From: "John Burton" <jb AT mail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: c++ string question
Date: Tue, 14 Apr 1998 21:51:16 +0100
Organization: http://www.bilton.demon.co.uk/
Message-ID: <892587057.6082.0.nnrp-11.9e9808ce@news.demon.co.uk>
References: <Pine DOT GSO DOT 3 DOT 96 DOT 980413230725 DOT 22692A-100000 AT oscar DOT eecs DOT uic DOT edu>
NNTP-Posting-Host: bilton.demon.co.uk
MIME-Version: 1.0
Lines: 12
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Andrew Deren wrote in message ...
>
>I have a string object and a function whose parameter is char *,
>so how do I send the char* pointer from the string to the object?


Are you using the standard library "string" class?

if so, the c_str() member function of the string class will return
a const char* representation of the string.

- Raw text -


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