🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #481

String manipulation

#481
From: News
Date: Tue, 03 Oct 2000 00:00
16 lines
1464 bytes
I need some help for string manipulation (without CString class).
I know basics of C++, but never used strings.
For example I need a function for appending a backslash after a directory
name:

VOID WINAPI AppendSlash(LPTSTR *lpFileName)
{
 len = lstrlen(*lpFileName) + 1;
 if (len > 0 && szBuffer[len] != '\\')
 {
  // Modify string by adding a backsslash
 }
}

Thanks,
Jef Driesen
Technical Details
Message-ID: <39da0385.0@news.ruca.ua.ac.be>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f7a51,f2706f20e1973f75,start
X-Google-Attributes: gidf7a51,public
X-Google-Thread: 114592,f2706f20e1973f75,start
X-Google-Attributes: gid114592,public
X-Google-Thread: 109fba,f2706f20e1973f75,start
X-Google-Attributes: gid109fba,public
X-Google-Thread: f5ca7,f2706f20e1973f75,start
X-Google-Attributes: gidf5ca7,public
X-Google-Thread: 103bde,f2706f20e1973f75,start
X-Google-Attributes: gid103bde,public
From: "News" <jef_driesen@hotmail.com>
Subject: String manipulation
Date: 2000/10/03
Message-ID: <39da0385.0@news.ruca.ua.ac.be>
X-Deja-AN: 677084658
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Complaints-To: abuse@belnet.be
X-Trace: naxos.belnet.be 970589065 1446 143.129.201.210 (3 Oct 2000 16:04:25 GMT)
Organization: UA-Ruca
X-MSMail-Priority: Normal
NNTP-Posting-Date: Tue, 3 Oct 2000 16:04:25 +0000 (UTC)
Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.winapi,borland.public.cppbuilder.winapi,comp.lang.c++,microsoft.public.vc.language