Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1009 → Rev 1010

/uspace/trunk/libc/generic/io/io.c
67,6 → 67,10
{
size_t count;
if (str == NULL) {
return putnchars("(NULL)",6 );
}
 
for (count = 0; str[count] != 0; count++);
if (write(1, (void * ) str, count) == count) {
return 0;
/uspace/trunk/libc/generic/io/print.c
203,7 → 203,8
counter += retval;
break;
case 'c':
if ((retval = putnchars((char *)&va_arg(ap, unsigned long), sizeof(char))) == EOF) {
c = va_arg(ap, unsigned long);
if ((retval = putnchars(&c, sizeof(char))) == EOF) {
return -counter;
};