To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 8198
8197  |  8199
Subject: 
Re: printf question
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Mon, 4 Dec 2000 19:41:48 GMT
Viewed: 
1397 times
  
I have also tried this idea.  Thanks for the suggestion though.  To be more
exact about the character I am getting though, it is a letter Y with two
dashes in it.  Each dash being a third from the top and a third from the
bottom.  I am at my wits end.  Any help would be appreciated.  I have also
tried different boards and LCD panels to make sure it wasn't that.
Once again, thanks in advance.
-Nick
At 10:11 AM 12/4/2000 -0500, Brat Wizard wrote:
The correct syntax would be:

printf("\\\n");

The problem you're having is that the '\' character is a special character
and needs to be escaped. The newline is also a special character and needs
to be escaped. In your example, which one is being escaped??? The correct
way is to escape them both.

Hope this helps-

John


Nick Golder wrote:
I am having a problem with this line:
printf("\\n");

It is print some strange ASCII character that looks like an upside down
broom and I need it to print just a "\" (minus the parenths of course).  I
have also tried
this:
int d;
d=92;
printf("%c",d);
I still get the same result.
I am using IC 2.81.  Any help would be greatly appreciated.
Thanks in advance.
-Nick
purenrg@iastate.edu

--
+----------------------------------------------------------------------+
| "I'll give up my modem when they pry it from my cold, dead fingers!" |
| John Whitten -
brat@naxs.com  <http://www.wizard.org>http://www.wizard.org                  |
+----------------------------------------------------------------------+



Message has 1 Reply:
  Re: printf question
 
Ooops. Sent from a non authorized account and bounced... (...) ----- Original Message ----- From: "Nick Golder" <purenrg@iastate.edu> To: <lugnet.robotics.han...ugnet.com> Sent: Monday, December 04, 2000 11:41 AM Subject: Re: printf question (...) (...) (24 years ago, 6-Dec-00, to lugnet.robotics.handyboard)

Message is in Reply To:
  printf question
 
I am having a problem with this line: printf("\\n"); It is print some strange ASCII character that looks like an upside down broom and I need it to print just a "\" (minus the parenths of course). I have also tried this: int d; d=92; printf("%c",d); (...) (24 years ago, 4-Dec-00, to lugnet.robotics.handyboard)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR