|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Line Continuation Character in MPLAB?
Does MPLAB support the line continuation character? I searched the C18 User's Guide to no avail with the phrase "continuation".
A google search brought up this result, but it looks like they are using macros... Thanks, |
|
#2
|
|||||
|
|||||
|
Re: Line Continuation Character in MPLAB?
A C statement can be spread over as many lines as you like without involving any special characters, so I'm not sure I understand your question.
|
|
#3
|
|||
|
|||
|
Re: Line Continuation Character in MPLAB?
Yeah, unless you are using macros there's no need for the line continuation char (which is \ ). If you want to break a string over multiple lines you can do
Code:
printf("Start of the line"
"Continuation");
|
|
#4
|
|||
|
|||
|
Re: Line Continuation Character in MPLAB?
I have nothing to add about continuations, but
Code:
printf("Start of the line"
"Continuation");
Quote:
Roger. |
|
#5
|
||||
|
||||
|
Re: Line Continuation Character in MPLAB?
there are no continuation characters if i get your question right...
there are "discontinuation" characters as escape sequences... all printf statements will print out their arguments on the same line unless you tell it explicitly not too. For example, the following code... printf("Some say UNIX\nhath daemons"); //will output: Some say UNIX hath daemons Its because when the compiler reads '\n' it knows not to print it, but to start a new line. This is an escape sequence and there are others (i.e. \t ). |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Searching - Why is there a 3-character min length? | DanL | CD Forum Support | 3 | 13-01-2004 23:21 |
| using the MPLAB IDE MPLAB SIM simulator | WizardOfAz | Programming | 1 | 03-11-2003 01:24 |
| Name That Character! | Amber H. | Chit-Chat | 18 | 17-01-2003 15:44 |
| character studio | archiver | 2001 | 2 | 23-06-2002 23:41 |
| ss of team 30's main character =) | RobDeCotiis | 3D Animation and Competition | 0 | 18-02-2002 08:19 |