From 206d2fe793a86244c6547ae6230e7d40917b96e3 Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Tue, 14 Oct 2025 21:45:00 +0200 Subject: [PATCH] Fix format string --- examples/Feedthrough.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Feedthrough.c b/examples/Feedthrough.c index 9e9d5973..d353323f 100644 --- a/examples/Feedthrough.c +++ b/examples/Feedthrough.c @@ -218,7 +218,7 @@ FMIStatus recordVariables(FMIInstance *S, double time, FILE *outputFile) { fprintf(outputFile, "%.16g,", Float64_values[1]); fprintf(outputFile, "%" PRId32 ",", Int32_values[0]); fprintf(outputFile, "%d,", Boolean_values[0]); - fprintf(outputFile, "%\"%s\",", String_values[0]); + fprintf(outputFile, "%s", String_values[0]); fprintf(outputFile, ",%" PRId32 "\n", Int32_values[1]); #elif FMI_VERSION == 2 @@ -244,7 +244,7 @@ FMIStatus recordVariables(FMIInstance *S, double time, FILE *outputFile) { fprintf(outputFile, "%.16g,", Float64_values[1]); fprintf(outputFile, "%" PRId32 ",", Int32_values[0]); fprintf(outputFile, "%d,", Boolean_values[0]); - fprintf(outputFile, "%\"%s\",", String_values[0]); + fprintf(outputFile, "%s", String_values[0]); fprintf(outputFile, ",%" PRId32 "\n", Int32_values[1]); #elif FMI_VERSION == 3 @@ -316,7 +316,7 @@ FMIStatus recordVariables(FMIInstance *S, double time, FILE *outputFile) { fprintf(outputFile, "%" PRId64 ",", Int64_values[0]); fprintf(outputFile, "%" PRIu64 ",", UInt64_values[0]); fprintf(outputFile, "%d,", Boolean_values[0]); - fprintf(outputFile, "%\"%s\",", String_values[0]); + fprintf(outputFile, "%s", String_values[0]); for (size_t i = 0; i < Binary_sizes[0]; i++) {