From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: printf vs stream IO Date: 2 Oct 2001 23:38:35 GMT Organization: Cornell University Lines: 24 Sender: asu1 AT cornell DOT invalid (on slip-32-102-40-98.ny.us.prserv.net) Message-ID: References: <3BB60BE8 DOT 2C5B9EA7 AT worldnet DOT att DOT net> NNTP-Posting-Host: slip-32-102-40-98.ny.us.prserv.net X-Trace: news01.cit.cornell.edu 1002065915 15703 32.102.40.98 (2 Oct 2001 23:38:35 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 2 Oct 2001 23:38:35 GMT User-Agent: Xnews/4.06.22 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Radical NetSurfer wrote in news:l45crt8tlkk7dcak95lvi00svsh3kt4kqv AT 4ax DOT com: > > char *strrev(const char *str) ; //use strdup !! > > da solution...at least.... SHEESH PEOPLE! not "da solution" but a solution. it depends on your requirements and whether you want to keep track of the memory allocated by strdup. you are making sure to check the return value of strdup right? you are remembering to free it, right? also, i wish you would cut down on the sheeshes. incidentally, strdup is not standard either. and please don't remind me i have contradicted my wish of not posting on this topic again. sinan. -- -------------------------------- A. Sinan Unur http://www.unur.com/