🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Return a string in C???

#30
From: R
Date: Tue, 27 May 2003 06:51
13 lines
1561 bytes
Hey all!

Just learning C and I'm wondering how one would return a string from a
function.

Basically, I'm passing in a float and returning a 1-3 character string based
on the value of the float.

Is there a simple example that someone can provide?

Thanks!

P.s.  Searching for "C" in Google and groups is a pain!   : )
Technical Details
Message-ID: <oVDAa.85219$Vi5.2444320@news1.calgary.shaw.ca>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news1.calgary.shaw.ca.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d4ba,726fa50532a809c2,start
X-Google-Attributes: gid10d4ba,public
X-Google-Thread: 1014db,726fa50532a809c2,start
X-Google-Attributes: gid1014db,public
X-Google-Thread: 114592,726fa50532a809c2,start
X-Google-Attributes: gid114592,public
X-Google-ArrivalTime: 2003-05-26 23:51:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news1.calgary.shaw.ca.POSTED!not-for-mail
X-Trace-PostClient-IP: 204.209.209.129
From: "R" <R@R.R>
Newsgroups: alt.comp.lang.learn.c-c++,att.lang.c++,comp.lang.c
Subject: Return a string in C???
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
Message-ID: <oVDAa.85219$Vi5.2444320@news1.calgary.shaw.ca>
Date: Tue, 27 May 2003 06:51:00 GMT
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse@shaw.ca
X-Trace: news1.calgary.shaw.ca 1054018260 24.71.223.147 (Tue, 27 May 2003 00:51:00 MDT)
NNTP-Posting-Date: Tue, 27 May 2003 00:51:00 MDT
Organization: Shaw Residential Internet