Explorar o código

fix fputwc return value

Rich Felker %!s(int64=14) %!d(string=hai) anos
pai
achega
52458cfa8c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/stdio/fputwc.c

+ 1 - 1
src/stdio/fputwc.c

@@ -25,7 +25,7 @@ wint_t fputwc(wchar_t c, FILE *f)
 	FLOCK(f);
 	c = __fputwc_unlocked(c, f);
 	FUNLOCK(f);
-	return 0;
+	return c;
 }
 
 weak_alias(__fputwc_unlocked, fputwc_unlocked);