Subversion Repositories HelenOS

Rev

Rev 2787 | Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2787 Rev 3425
Line 92... Line 92...
92
    size_t count;
92
    size_t count;
93
   
93
   
94
    if (str == NULL)
94
    if (str == NULL)
95
        return printf_putnchars("(NULL)", 6, ps);
95
        return printf_putnchars("(NULL)", 6, ps);
96
 
96
 
97
    for (count = 0; str[count] != 0; count++);
97
    count = strlen(str);
98
 
98
 
99
    if (ps->write((void *) str, count, ps->data) == count)
99
    return ps->write((void *) str, count, ps->data);
100
        return 0;
-
 
101
   
-
 
102
    return EOF;
-
 
103
}
100
}
104
 
101
 
105
/** Print one character to output
102
/** Print one character to output
106
 * @param c one character
103
 * @param c one character
107
 * @param ps output method
104
 * @param ps output method