🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14206

Re: How to assign text to a char *buffer ?

#14206
From: Rodolfo Frino
Date: Wed, 20 Aug 2003 22:26
13 lines
1215 bytes
Or using pointer notation, which is, faster

 char* Buffer[] = {"Your string 1", "Your string 2", "Your string 3"};

 String S = "";
 for (int i=0; i<ARRAYSIZE(Buffer); ++i)
 {
     S += String(*(Buffer+i)) + " ";
 }
 Caption = S;


Rodolfo
Technical Details
Message-ID: <3f43f57c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f43e3f5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,80747dfc78851287
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-20 15:32:59 PST
From: "Rodolfo Frino" <rodolfofrino@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f43e3f5$1@newsgroups.borland.com>
Subject: Re: How to assign text to a char *buffer ?
Date: Thu, 21 Aug 2003 08:26:38 +1000
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 203.206.27.108
Message-ID: <3f43f57c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061418364 203.206.27.108 (20 Aug 2003 15:26:04 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail