21 lines
190 B
C
21 lines
190 B
C
|
int putstring(char *s)
|
||
|
{
|
||
|
char c;
|
||
|
while((c=*s))
|
||
|
{
|
||
|
if(c == '\n') putchar('\r');
|
||
|
putchar(c);
|
||
|
s++;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
int puts(char *s)
|
||
|
{
|
||
|
putstring(s);
|
||
|
putchar('\r');
|
||
|
putchar('\n');
|
||
|
return 0;
|
||
|
}
|