1. I found an error in printf

This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C2DE47.EC6CE900
	charset="iso-8859-1"

printf(1,"Unknown Charachter \"%s\"\n",{13})
--<outputs>in 2.3 and 2.4
"nknown Charachter "

------=_NextPart_000_0007_01C2DE47.EC6CE900
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>printf(1,"Unknown Charachter=20
\"%s\"\n",{13})</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>--&lt;outputs&gt;in 2.3 and =
2.4</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"nknown Charachter =

------=_NextPart_000_0007_01C2DE47.EC6CE900--

new topic     » topic index » view message » categorize

2. Re: I found an error in printf

xerox_irs at lvcm.com wrote:
> printf(1,"Unknown Charachter \"%s\"\n",{13})
> --<outputs>in 2.3 and 2.4
> "nknown Charachter "

I'd say that was correct.
13 is \r, i.e. carriage return.
When it's printed, it moves the
cursor to the left margin, but it does not
move to the next line. After 13, the next character
to be printed is " which overwrites the U in Unknown.
Finally, you output a \n which moves to the next line.

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: I found an error in printf

the problem is that when a whole bunch of charachters are running through
that statement and every now and then it looks messed up like that. but now
i understand why.
----- Original Message -----
From: Robert Craig <rds at RapidEuphoria.com>
Subject: Re: I found an error in printf


>
> xerox_irs at lvcm.com wrote:
> > printf(1,"Unknown Charachter \"%s\"\n",{13})
> > --<outputs>in 2.3 and 2.4
> > "nknown Charachter "
>
> I'd say that was correct.
> 13 is \r, i.e. carriage return.
> When it's printed, it moves the
> cursor to the left margin, but it does not
> move to the next line. After 13, the next character
> to be printed is " which overwrites the U in Unknown.
> Finally, you output a \n which moves to the next line.
>
> Regards,
>     Rob Craig
>     Rapid Deployment Software
>     http://www.RapidEuphoria.com
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: I found an error in printf

I don't think printf is supposed to do spelling checks.  (Character) blink

xerox_irs at lvcm.com wrote:

>  
>
> printf(1,"Unknown Charachter \"%s\"\n",{13})
> --<outputs>in 2.3 and 2.4
> "nknown Charachter "
>
>
>
>TOPICA - Start your own email discussion group. FREE!
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu