Article View: alt.comp.lang.learn.c-c++
Article #32Re: Return a string in C???
From: Adrian Parker
Date: Mon, 02 Jun 2003 14:46
Date: Mon, 02 Jun 2003 14:46
29 lines
1932 bytes
1932 bytes
"R" <R@R.R> wrote in message news:oVDAa.85219$Vi5.2444320@news1.calgary.shaw.ca... > 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! : ) Why would you search for "C", which is very generalised and likely to return several million records, as opposed to any of these more specific searches: +c +"return string from function" +"c programming" +"return string" etc Adrian
Technical Details
Message-ID:
<8rJCa.2555$IR1.163644@news20.bellglobal.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.uunet.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mailReferences:
<oVDAa.85219$Vi5.2444320@news1.calgary.shaw.ca>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-02 08:01:40 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.uunet.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Adrian Parker" <microsoft@mormon.mine.nu> Newsgroups: alt.comp.lang.learn.c-c++,att.lang.c++,comp.lang.c References: <oVDAa.85219$Vi5.2444320@news1.calgary.shaw.ca> Subject: Re: Return a string in C??? Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3718.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3718.0 Message-ID: <8rJCa.2555$IR1.163644@news20.bellglobal.com> Date: Mon, 2 Jun 2003 10:46:04 -0400 NNTP-Posting-Host: 67.69.110.235 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1054565188 67.69.110.235 (Mon, 02 Jun 2003 10:46:28 EDT) NNTP-Posting-Date: Mon, 02 Jun 2003 10:46:28 EDT Organization: Bell Sympatico