🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Return a string in C???

#37
From: Mark McIntyre
Date: Tue, 03 Jun 2003 14:46
27 lines
2961 bytes
On Tue, 03 Jun 2003 12:45:51 GMT, in comp.lang.c , "chris"
<ChrisCummings@hot.rr.com> wrote:

>"Richard Heathfield" <dontmail@address.co.uk.invalid> wrote in message
>news:bbg354$k2n$3@hercules.btinternet.com...

>> What does the cast buy you?
>>
>my compiler complains about casting a void * to a value without doing it
>explicitly, and i would normally use an unsigned, but didn't think of it at
>the time because it was just a quick response

Thats because you're compiling C++ not C. If you've a C++ question
then CLC is the wrong place to ask, and you may get wrong answers due
to the subtle differences between C and C++. 

Also your newsreader is broken, its not properly trimming people's
sigs off. Can you check that out? 
-- 
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Technical Details
Message-ID: <g3dpdvsdi9m9bc9vjuuselsrd8fh14rrda@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!news-in-sterling.newsfeed.com!text-east!not-for-mail
References: <oVDAa.85219$Vi5.2444320@news1.calgary.shaw.ca> <b709e49a.0306020942.3b31389d@posting.google.com> <bbg354$k2n$3@hercules.btinternet.com> <3M0Da.83479$%e.4559628@twister.austin.rr.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1014db,726fa50532a809c2
X-Google-Attributes: gid1014db,public
X-Google-Thread: 10d4ba,726fa50532a809c2
X-Google-Attributes: gid10d4ba,public
X-Google-Thread: 114592,726fa50532a809c2
X-Google-Attributes: gid114592,public
X-Google-ArrivalTime: 2003-06-03 07:46:39 PST
From: Mark McIntyre <markmcintyre@spamcop.net>
Newsgroups: alt.comp.lang.learn.c-c++,att.lang.c++,comp.lang.c
Subject: Re: Return a string in C???
Date: Tue, 03 Jun 2003 15:46:26 +0100
Message-ID: <g3dpdvsdi9m9bc9vjuuselsrd8fh14rrda@4ax.com>
References: <oVDAa.85219$Vi5.2444320@news1.calgary.shaw.ca> <b709e49a.0306020942.3b31389d@posting.google.com> <bbg354$k2n$3@hercules.btinternet.com> <3M0Da.83479$%e.4559628@twister.austin.rr.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 27
X-Authenticated-User: $$i_w5vn-
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support,  spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse@newsfeeds.com> You may also use our online abuse reporting from: http://www.newsfeeds.com/abuseform.htm
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 100,000+ UNCENSORED Newsgroups.
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!news-in-sterling.newsfeed.com!text-east!not-for-mail