Fixed fputc() for the PPC platform (would only write null bytes due to
big endian). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16090 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2005, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2003-2006, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -69,12 +69,13 @@ fprintf(FILE *file, const char *format, ...)
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
fputc(int character, FILE *file)
|
fputc(int c, FILE *file)
|
||||||
{
|
{
|
||||||
if (file == NULL)
|
if (file == NULL)
|
||||||
return B_FILE_ERROR;
|
return B_FILE_ERROR;
|
||||||
|
|
||||||
status_t status;
|
status_t status;
|
||||||
|
char character = (char)c;
|
||||||
|
|
||||||
// we only support direct console output right now...
|
// we only support direct console output right now...
|
||||||
status = ((ConsoleNode *)file)->Write(&character, 1);
|
status = ((ConsoleNode *)file)->Write(&character, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user