delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/29/17:34:45

From: =?iso-8859-1?Q?G=FCnter_Ladwig?= <gladwig AT iname DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Simple question about strings (and Rhide)
Date: Fri, 29 Oct 1999 19:38:24 +0200
Organization: 1&1 Telekommunikation GmbH
Lines: 23
Message-ID: <7vd008$oi0$1@news.online.de>
References: <7vc5c4$l90$1 AT nnrp1 DOT deja DOT com>
NNTP-Posting-Host: pc19f2a8d.dip0.t-ipconnect.de
Mime-Version: 1.0
X-Trace: news.online.de 941228872 25152 193.159.42.141 (29 Oct 1999 20:27:52 GMT)
X-Complaints-To: abuse AT online DOT de
NNTP-Posting-Date: 29 Oct 1999 20:27:52 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi!

> How do I convert a string such as "blabla.bla" to a char* [] so that
> Allegro's datafile init doesn't complain?

Do you mean something like load_datafile("data.dat")? That should work. If
you want to have a string, do char s[] = "data.dat"; Will only work at
initialization, of course. Any other way you'd have to malloc() the memory
for the
string.

ciao

guenter

--
-----
GŁnter Ladwig
eMail: gladwig AT iname DOT com
ICQ#: 14360158
HP: http://cyberbobby.home.pages.de


- Raw text -


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