Explorar el Código

fix fputwc return value

Rich Felker hace 14 años
padre
commit
52458cfa8c
Se han modificado 1 ficheros con 1 adiciones y 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);