Page 1 of 1

PostPosted: Tue Jan 30, 2001 1:52 am
by gganio
Nino 300
Mips R3000 CE2.0 PPC

PocketC/CE V2

"\n" escape sequence appears not to work.

This is the portion of my code that doesn't work:

<font color=red>
writebytes(fh,",Lap,"+lapnumb+", ,"+
laptime+",s,"+flaptime+",s, "+grosstime()+"\n");
</font id=red>


PostPosted: Thu Feb 01, 2001 7:42 am
by guy
Instead of using \n, use the code:

char cCr ;
char cLf ;

cCr = 13 ;
cLf = 10 ;

writebytes(h,"dsfasdsad" + cCr + cLf) ;


PostPosted: Mon Feb 05, 2001 12:24 am
by gganio
Thanks, Guy.

Your solution worked.

Giuseppe<img src=icon_smile.gif border=0 align=middle>

PostPosted: Thu Jun 07, 2001 7:38 am
by guy
This has been a problem since PocketC V1!


PostPosted: Sat Jun 09, 2001 1:06 am
by gganio
thanks Guy,

right now I am going thru testing with the palm OS version of my stopwatch. I hope by the time I go back to the Win CE version of the stopwatch Kevin will have started some sort of debugging effort of the Win CE release of Pocket-C.