Re: malloc modifying a passed string



Scott Taylor wrote:
>
> I've searched through the FAQ but I can't find this problem, which
> seems like it should be a newbie one. Here is a following code
> sample, without the necessary testing of malloc, including of
> standard libraries, etc...
>
> main() {

That's int main(void), BTW. Post a complete, compilable version
which displays the problem. The crystal balls are on strike.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson


.



Relevant Pages

  • Re: Any good books on Linux?
    ... I've been a newbie, and I have asked a stupid question from time to time, ... The FAQ is biweekly, but if you come in right after that and you've never ... I don't know much about Linux save ... I get maybe 6 spams a day on each of two accounts, ...
    (alt.os.linux)
  • Re: error logs...
    ... use the word "newbie" in their _subject_ lines usually turn out to be ... I advised you to go read the FAQ. ... social customs this is rude. ... script which, had it actually been your script, would probably have ...
    (comp.lang.perl.misc)
  • Re: Efficiency of math.h
    ... E. Robert Tisdale wrote: ... is used or the numerical base ... doesn't make me a newbie. ... C++ Faq: http://www.parashift.com/c++-faq-lite ...
    (comp.lang.c)
  • Re: Moderating and netiquet whiners hurting interest in Perl
    ... a newbie is pointed to the FAQ. ... a newbie should read it. ... all polite pointers to FAQ/docs, etc. might be having a job interview ...
    (comp.lang.perl.misc)
  • Re: list vs array
    ... > gets returned from sort are lists of values, ... newbie to develop some incorrect mental models about how Perl works (for ... misleading advice. ... The poster who refers a newbie to the FAQ ...
    (comp.lang.perl.misc)