Subversion Repositories HelenOS

Rev

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

Rev 1771 Rev 1773
Line 29... Line 29...
29
#include <ofw.h>
29
#include <ofw.h>
30
#include <printf.h>
30
#include <printf.h>
31
 
31
 
32
void write(const char *str, const int len)
32
void write(const char *str, const int len)
33
{
33
{
-
 
34
    int i;
-
 
35
   
-
 
36
    for (i = 0; i < len; i++) {
-
 
37
        if (str[i] == '\n')
-
 
38
            ofw_write("\r", 1);
34
    ofw_write(str, len);
39
        ofw_write(&str[i], 1);
-
 
40
    }
35
}
41
}