What does “^L” mean in C?
For example, main
in src/hello.c
in the GNU Hello package ends like this:
exit (EXIT_SUCCESS);
}
^L
c
add a comment |
For example, main
in src/hello.c
in the GNU Hello package ends like this:
exit (EXIT_SUCCESS);
}
^L
c
2
It means that the program's done ... to L with it!
– Hot Licks
2 hours ago
add a comment |
For example, main
in src/hello.c
in the GNU Hello package ends like this:
exit (EXIT_SUCCESS);
}
^L
c
For example, main
in src/hello.c
in the GNU Hello package ends like this:
exit (EXIT_SUCCESS);
}
^L
c
c
edited 3 hours ago
Peter Mortensen
13.8k1987113
13.8k1987113
asked 18 hours ago
Sean LetendreSean Letendre
4631621
4631621
2
It means that the program's done ... to L with it!
– Hot Licks
2 hours ago
add a comment |
2
It means that the program's done ... to L with it!
– Hot Licks
2 hours ago
2
2
It means that the program's done ... to L with it!
– Hot Licks
2 hours ago
It means that the program's done ... to L with it!
– Hot Licks
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
Literally, it's a page break ("form feed") character. The compiler treats it as ordinary whitespace. But it's very useful for printing source code - it starts a new page (for example, use ^L
between functions to force each call to get its own page).
In Vim/vi based editors, you can insert such a character within edit mode by typing Ctrl + V followed by Ctrl + L. It will look like ^L
in the editor, but it's actually just one character (ASCII value: 12 or 0x0C).
"it starts a new page" elaborate on this? What do you mean by a page exactly?
– FireCubez
5 hours ago
2
If you would print the source code on paper, the printer would… start a new page.
– Hermann
4 hours ago
5
Literally this
– selbie
4 hours ago
3
@Croll Obviously that's been a short life. You've never had to deal with hundreds of pages of listing s from a line printer. You'd use it all right.
– user207421
3 hours ago
2
@Croll Well, it's hardly the first time someone's used whitespace to make code format nicely, is it?
– naomimyselfandi
3 hours ago
|
show 5 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55203770%2fwhat-does-l-mean-in-c%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Literally, it's a page break ("form feed") character. The compiler treats it as ordinary whitespace. But it's very useful for printing source code - it starts a new page (for example, use ^L
between functions to force each call to get its own page).
In Vim/vi based editors, you can insert such a character within edit mode by typing Ctrl + V followed by Ctrl + L. It will look like ^L
in the editor, but it's actually just one character (ASCII value: 12 or 0x0C).
"it starts a new page" elaborate on this? What do you mean by a page exactly?
– FireCubez
5 hours ago
2
If you would print the source code on paper, the printer would… start a new page.
– Hermann
4 hours ago
5
Literally this
– selbie
4 hours ago
3
@Croll Obviously that's been a short life. You've never had to deal with hundreds of pages of listing s from a line printer. You'd use it all right.
– user207421
3 hours ago
2
@Croll Well, it's hardly the first time someone's used whitespace to make code format nicely, is it?
– naomimyselfandi
3 hours ago
|
show 5 more comments
Literally, it's a page break ("form feed") character. The compiler treats it as ordinary whitespace. But it's very useful for printing source code - it starts a new page (for example, use ^L
between functions to force each call to get its own page).
In Vim/vi based editors, you can insert such a character within edit mode by typing Ctrl + V followed by Ctrl + L. It will look like ^L
in the editor, but it's actually just one character (ASCII value: 12 or 0x0C).
"it starts a new page" elaborate on this? What do you mean by a page exactly?
– FireCubez
5 hours ago
2
If you would print the source code on paper, the printer would… start a new page.
– Hermann
4 hours ago
5
Literally this
– selbie
4 hours ago
3
@Croll Obviously that's been a short life. You've never had to deal with hundreds of pages of listing s from a line printer. You'd use it all right.
– user207421
3 hours ago
2
@Croll Well, it's hardly the first time someone's used whitespace to make code format nicely, is it?
– naomimyselfandi
3 hours ago
|
show 5 more comments
Literally, it's a page break ("form feed") character. The compiler treats it as ordinary whitespace. But it's very useful for printing source code - it starts a new page (for example, use ^L
between functions to force each call to get its own page).
In Vim/vi based editors, you can insert such a character within edit mode by typing Ctrl + V followed by Ctrl + L. It will look like ^L
in the editor, but it's actually just one character (ASCII value: 12 or 0x0C).
Literally, it's a page break ("form feed") character. The compiler treats it as ordinary whitespace. But it's very useful for printing source code - it starts a new page (for example, use ^L
between functions to force each call to get its own page).
In Vim/vi based editors, you can insert such a character within edit mode by typing Ctrl + V followed by Ctrl + L. It will look like ^L
in the editor, but it's actually just one character (ASCII value: 12 or 0x0C).
edited 3 hours ago
Peter Mortensen
13.8k1987113
13.8k1987113
answered 18 hours ago
selbieselbie
56.3k1063124
56.3k1063124
"it starts a new page" elaborate on this? What do you mean by a page exactly?
– FireCubez
5 hours ago
2
If you would print the source code on paper, the printer would… start a new page.
– Hermann
4 hours ago
5
Literally this
– selbie
4 hours ago
3
@Croll Obviously that's been a short life. You've never had to deal with hundreds of pages of listing s from a line printer. You'd use it all right.
– user207421
3 hours ago
2
@Croll Well, it's hardly the first time someone's used whitespace to make code format nicely, is it?
– naomimyselfandi
3 hours ago
|
show 5 more comments
"it starts a new page" elaborate on this? What do you mean by a page exactly?
– FireCubez
5 hours ago
2
If you would print the source code on paper, the printer would… start a new page.
– Hermann
4 hours ago
5
Literally this
– selbie
4 hours ago
3
@Croll Obviously that's been a short life. You've never had to deal with hundreds of pages of listing s from a line printer. You'd use it all right.
– user207421
3 hours ago
2
@Croll Well, it's hardly the first time someone's used whitespace to make code format nicely, is it?
– naomimyselfandi
3 hours ago
"it starts a new page" elaborate on this? What do you mean by a page exactly?
– FireCubez
5 hours ago
"it starts a new page" elaborate on this? What do you mean by a page exactly?
– FireCubez
5 hours ago
2
2
If you would print the source code on paper, the printer would… start a new page.
– Hermann
4 hours ago
If you would print the source code on paper, the printer would… start a new page.
– Hermann
4 hours ago
5
5
Literally this
– selbie
4 hours ago
Literally this
– selbie
4 hours ago
3
3
@Croll Obviously that's been a short life. You've never had to deal with hundreds of pages of listing s from a line printer. You'd use it all right.
– user207421
3 hours ago
@Croll Obviously that's been a short life. You've never had to deal with hundreds of pages of listing s from a line printer. You'd use it all right.
– user207421
3 hours ago
2
2
@Croll Well, it's hardly the first time someone's used whitespace to make code format nicely, is it?
– naomimyselfandi
3 hours ago
@Croll Well, it's hardly the first time someone's used whitespace to make code format nicely, is it?
– naomimyselfandi
3 hours ago
|
show 5 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55203770%2fwhat-does-l-mean-in-c%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
It means that the program's done ... to L with it!
– Hot Licks
2 hours ago