Plan 9 from Bell Labs’s /usr/web/sources/contrib/quanstro/root/sys/src/cmd/upas/filterkit/mbcreate.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include "dat.h"
#include "common.h"

void
usage(void)
{
	fprint(2, "usage: mbcreate [-f] ...\n");
	exits("usage");
}

void
main(int argc, char **argv)
{
	int r;
	int (*f)(char*, char*);

	f = creatembox;
	ARGBEGIN{
	case 'f':
		f = createfolder;
		break;
	default:
		usage();
	}ARGEND

	r = 0;
	for(; *argv; argv++)
		r |= f(getuser(), *argv);
	if(r)
		exits("errors");
	exits("");
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.