All pastes #268000 Raw Edit

David R.S. Robinson

public text v1 · immutable
·published 2006-12-05 07:18 UTC
rendered paste body
void putc(int c){  write(STDOUT, &c, 1);  if(c == '\n')    putc('\r');}void puts(char *s){  while(*s)  {    putc(*s);    s++;  }}char *help = "cd [directory]    Change directory.\n" \             "pwd               Display current directory.\n" \             "> >>< |           Everyone's favourite pipes!\n" \             "\n(Hint: Everything else is a command.)\n";-----------------------------------------puts(help) only displays up until "mand." in the last line.printf("%s", help) displays it all.Both call putc(). Thoughts?