do not edit — generated by btf.
git.druid.rocksindexdruid520kaboomsrc/user/echo.nsc

src/user/echo.nsc


include "syscalls.nsh";
include "lib.nsh";
include "stdio.nsh";
 
/* no flag support (-n etc) -- minimalized, matching the rest of this
 * kernel's "ship the real minimal version" pattern. */
global i32
main(i32 argc, ptr argv)
{
	i32 i;
	ptr arg;
 
	i = 1;
	while(i < argc)
	{
		arg = argv_get(argv, i);
		puts(arg);
		if(i < argc - 1)
		{
			putchar((u8)32);
		}
		i = i + 1;
	}
	putchar((u8)10);
	stdio_flush();
	return 0;
}
powered by btf.