Created
June 26, 2018 12:36
-
-
Save toksdotdev/076d72a6585b338cf06d807c3d19c3fb to your computer and use it in GitHub Desktop.
Replace Line in print in same line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void clear(int size){ | |
char num[size]; | |
memset(num, ' ', size + 3); | |
printf("\r%s", num); | |
} | |
int main() | |
{ | |
clear(printf("Hello Worldjjkkjjkjkjfkejfef")); | |
printf("hello worlds again"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment