Article View: borland.public.cppbuilder.nativeapi
Article #9434Re: Last trie
From: Norm Jaffe
Date: Wed, 07 Jul 2004 16:58
Date: Wed, 07 Jul 2004 16:58
16 lines
1343 bytes
1343 bytes
> But about memset it doesnt work man: > > strcpy(biosnro,"inistr"); > memset(biosnro, ' ', strlen(biosnro) - 1); > [snip] It's much simpler (and more efficient) to do: memset(biosnro, ' ', sizeof(biosnro) - 1); If you _must_ use strlen(), then the code should be: memset(biosnro, ' ', strlen(biosnro)); Norm
Technical Details
Message-ID:
<40ec2bad$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40c86e9e@newsgroups.borland.com> <40eb41eb$1@newsgroups.borland.com> <40eb8d7b$1@newsgroups.borland.com> <40ec23f0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e3066f787953dff9 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Norm Jaffe" <mail@aurelsystems.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40c86e9e@newsgroups.borland.com> <40eb41eb$1@newsgroups.borland.com> <40eb8d7b$1@newsgroups.borland.com> <40ec23f0@newsgroups.borland.com> Subject: Re: Last trie Date: Wed, 7 Jul 2004 09:58:39 -0700 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 206.116.206.246 Message-ID: <40ec2bad$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089219501 206.116.206.246 (7 Jul 2004 09:58:21 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail