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$>
References: <7vc5c4$l90$1 AT nnrp1 DOT deja DOT com>
Mime-Version: 1.0
X-Trace: 941228872 25152 (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


> 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



GŁnter Ladwig
eMail: gladwig AT iname DOT com
ICQ#: 14360158

- Raw text -

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