"CBFalconer" <cbfalconer@yahoo.com> wrote in message
news:4476379F.797F77E0@yahoo.com...[color=blue]
> Joe Smith wrote:[color=green]
>> "Richard Heathfield"[color=darkred]
>>>
harmanpal@gmail.com said:
>>>
>>>> I am relatively new to C and am
>>>> approaching from a high level language (java) background
>>>
>>> The cause of your C problem is an error in the way you are using
>>> pointers.[/color]
>>
>> Did the claim that printf managed to print a negative number of
>> characters figure into this diagnosis? joe[/color]
>
> Look up the specification of printf. A negative return value
> indicates error. This probably has nothing to do with the OPs
> problem. He probably has some sort of undefined behaviour
> somewhere, such as a buffer overrun or a bad pointer.
>
> --
> "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
> More details at: <http://cfaj.freeshell.org/google/>
> Also see <http://www.safalra.com/special/googlegroupsreply/>
>
>[/color]
/* begin reply */
/* paste */
"Keith Thompson" <kst-u@mib.org> wrote in message
news:lnlkspbve8.fsf@nuthaus.mib.org...[color=blue]
> "Joe Smith" <grumpy196884@netzero.net> writes:[color=green]
>> "Richard Heathfield"[color=darkred]
>>>
harmanpal@gmail.com said:
>>>
>>>> I am relatively new to C and am
>>>> approaching from a high level language (java) background
>>>
>>> The cause of your C problem is an error in the way you are using
>>> pointers.[/color]
>>
>> Did the claim that printf managed to print a negative number of
>> characters
>> figure into this diagnosis? joe[/color]
>
> I don't recall any such claim.
>
> printf() returns the number of characters printed, or a negative value
> if an error occurs. Even if it were possible for it to print a
> negative number of characters, there would be no way for it to
> indicate that it had done so.[/color]
You are correct. The negative return was only premised. My claim is that
what is premised might have something to do with his output. joe
/* end paste */
My newsreader or server has definitely gone Indian on me. joe