wm: teppich

ref: 8404bf30a3e77290ab24b0e1b0d928bf19d1b322
dir: /cmd/echo.c/

View raw version
#include <u.h>
#include <libc.h>

#include <bitmap.h>

void
echo_main(int argc, char **argv)
{
	int i;

	i = 1;
	if(argc >= 1 && !strcmp(argv[1], "-b"))
	{
		i = 2;
		while(i < argc)
		{
			bitputs(argv[i]);
			i++;
		}
	}
	
	while(i < argc)
	{
		printf("%s", argv[i]);
		printf(" ");
		i++;
	}
	
	vga_putc('\n');
}