Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 2479 → Rev 2670

/trunk/uspace/lib/libc/generic/io/io.c
47,8 → 47,8
return putnchars("(NULL)", 6);
for (count = 0; str[count] != 0; count++);
if (write(1, (void *) str, count) == count) {
if (write(1, &nl, 1) == 1)
if (write_stdout((void *) str, count) == count) {
if (write_stdout(&nl, 1) == 1)
return 0;
}
62,7 → 62,7
*/
int putnchars(const char *buf, size_t count)
{
if (write(1, (void *) buf, count) == count)
if (write_stdout((void *) buf, count) == count)
return 0;
return EOF;
79,7 → 79,7
return putnchars("(NULL)", 6);
 
for (count = 0; str[count] != 0; count++);
if (write(1, (void *) str, count) == count)
if (write_stdout((void *) str, count) == count)
return 0;
return EOF;
88,7 → 88,7
int putchar(int c)
{
unsigned char ch = c;
if (write(1, (void *) &ch, 1) == 1)
if (write_stdout((void *) &ch, 1) == 1)
return c;
return EOF;
97,7 → 97,7
int getchar(void)
{
unsigned char c;
if (read(0, (void *) &c, 1) == 1)
if (read_stdin((void *) &c, 1) == 1)
return c;
return EOF;