Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
8 years ago
Diff never expires
Clear
Export
Share
Explain
1 removal
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
35 lines
Copy
1 addition
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
35 lines
Copy
#include <string.h>
#include <string.h>
#include <stdio.h>
#include <stdio.h>
#include <switch.h>
#include <switch.h>
int main(int argc, char **argv)
int main(int argc, char **argv)
{
{
gfxInitDefault();
gfxInitDefault();
//Initialize console. Using NULL as the second argument tells the console library to use the internal console structure as current one.
//Initialize console. Using NULL as the second argument tells the console library to use the internal console structure as current one.
consoleInit(NULL);
consoleInit(NULL);
//Move the cursor to row 16 and column 20 and then prints "Hello World!"
//Move the cursor to row 16 and column 20 and then prints "Hello World!"
//To move the cursor you have to print "\x1b[r;cH", where r and c are respectively
//To move the cursor you have to print "\x1b[r;cH", where r and c are respectively
//the row and column where you want your cursor to move
//the row and column where you want your cursor to move
Copy
Copied
Copy
Copied
printf("\x1b[16;
20HHello World!
");
printf("\x1b[16;
20HFuck you.
");
while(appletMainLoop())
while(appletMainLoop())
{
{
//Scan all the inputs. This should be done once for each frame
//Scan all the inputs. This should be done once for each frame
hidScanInput();
hidScanInput();
//hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
//hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
if (kDown & KEY_PLUS) break; // break in order to return to hbmenu
if (kDown & KEY_PLUS) break; // break in order to return to hbmenu
gfxFlushBuffers();
gfxFlushBuffers();
gfxSwapBuffers();
gfxSwapBuffers();
gfxWaitForVsync();
gfxWaitForVsync();
}
}
gfxExit();
gfxExit();
return 0;
return 0;
}
}
Saved diffs
Original text
Open file
#include <string.h> #include <stdio.h> #include <switch.h> int main(int argc, char **argv) { gfxInitDefault(); //Initialize console. Using NULL as the second argument tells the console library to use the internal console structure as current one. consoleInit(NULL); //Move the cursor to row 16 and column 20 and then prints "Hello World!" //To move the cursor you have to print "\x1b[r;cH", where r and c are respectively //the row and column where you want your cursor to move printf("\x1b[16;20HHello World!"); while(appletMainLoop()) { //Scan all the inputs. This should be done once for each frame hidScanInput(); //hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame) u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO); if (kDown & KEY_PLUS) break; // break in order to return to hbmenu gfxFlushBuffers(); gfxSwapBuffers(); gfxWaitForVsync(); } gfxExit(); return 0; }
Changed text
Open file
#include <string.h> #include <stdio.h> #include <switch.h> int main(int argc, char **argv) { gfxInitDefault(); //Initialize console. Using NULL as the second argument tells the console library to use the internal console structure as current one. consoleInit(NULL); //Move the cursor to row 16 and column 20 and then prints "Hello World!" //To move the cursor you have to print "\x1b[r;cH", where r and c are respectively //the row and column where you want your cursor to move printf("\x1b[16;20HFuck you."); while(appletMainLoop()) { //Scan all the inputs. This should be done once for each frame hidScanInput(); //hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame) u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO); if (kDown & KEY_PLUS) break; // break in order to return to hbmenu gfxFlushBuffers(); gfxSwapBuffers(); gfxWaitForVsync(); } gfxExit(); return 0; }
Find difference