Home > Community > Forums > PCB SKILL > How do you print a | using fprintf?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How do you print a | using fprintf? 

Last post Mon, May 15 2006 10:31 AM by archive. 2 replies.
Started by archive 15 May 2006 10:31 AM. Topic has 2 replies and 1738 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, May 15 2006 10:31 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    How do you print a | using fprintf? Reply

    Hi,
    Does anyone know how to print a | using fprintf? I've tried the preceding it with a backslash and lots of other stuff, but
    fprintf(outputfile, "This is a test to print \|") it does not help, any info or help is greatly appreciated
    Best regards
    Ole


    Originally posted in cdnusers.org by ejlersen
    • Post Points: 0
  • Mon, May 15 2006 1:07 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How do you print a | using fprintf? Reply

    Hi Ole,

    fprintf(outputfile, "This is a test to print |") works fine for me. No special characters needed.

    Similarly sprintf(nil "This is a test to print |") prints to the console OK.

    Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Post Points: 0
  • Mon, May 15 2006 11:46 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How do you print a | using fprintf? Reply

    Thanks, this works fine now. Don't know what happened the first time I tried this - must have been something else in the fprintf funtion.


    Originally posted in cdnusers.org by ejlersen
    • Post Points: 0
Page 1 of 1 (3 items)
Sort Posts:
Started by archive at 15 May 2006 10:31 AM. Topic has 2 replies.