Skip to content

Instantly share code, notes, and snippets.

@toksdotdev
Created June 26, 2018 12:36
Show Gist options
  • Save toksdotdev/076d72a6585b338cf06d807c3d19c3fb to your computer and use it in GitHub Desktop.
Save toksdotdev/076d72a6585b338cf06d807c3d19c3fb to your computer and use it in GitHub Desktop.
Replace Line in print in same line
#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