diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-04-07 15:05:06 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-04-07 15:05:06 -0700 |
commit | 98bbfb3883ff99966e3c4bf99c5aaae6d7163642 (patch) | |
tree | e4d886adb762db36f17b71b1b3f188608f3995b2 /remote_plot.c | |
parent | 7188b121e0c76610c17fe7cb9b62e789dd3e73e0 (diff) |
use putchar to print one char
Diffstat (limited to 'remote_plot.c')
-rw-r--r-- | remote_plot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remote_plot.c b/remote_plot.c index 9355885..60930ec 100644 --- a/remote_plot.c +++ b/remote_plot.c @@ -318,11 +318,11 @@ static void print_data (GtkWidget *widget, gpointer user_data) printf("t:"); for(int i=0;i<LEN;i++) printf(" %g",data->t[i]); - printf("\n"); + putchar('\n'); printf("buffer:"); for(int i=0;i<LEN;i++) printf(" %g",data->buffer[i]); - printf("\n"); + putchar('\n'); } static void activate (GtkApplication *app, gpointer user_data) |