e1fa6645094fd05e80c8bde1eaa36b424f49c891
[reactos.git] / reactos / base / applications / cmdutils / fsutil / fsutil.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS FS utility tool
4 * FILE: base/applications/cmdutils/fsutil.c
5 * PURPOSE: FSutil main
6 * PROGRAMMERS: Pierre Schweitzer <pierre@reactos.org>
7 */
8
9 #include "fsutil.h"
10
11 /* Add handlers here for commands */
12 int DirtyMain(int argc, const TCHAR *argv[]);
13 static HandlerItem HandlersList[] =
14 {
15 /* Proc, name, help */
16 { DirtyMain, _T("dirty"), _T("Manipulates the dirty bit") },
17 };
18
19 static void
20 PrintUsage(const TCHAR * Command)
21 {
22 PrintDefaultUsage(_T(" "), Command, (HandlerItem *)&HandlersList,
23 (sizeof(HandlersList) / sizeof(HandlersList[0])));
24 }
25
26 int
27 __cdecl
28 _tmain(int argc, const TCHAR *argv[])
29 {
30 return FindHandler(argc, argv, (HandlerItem *)&HandlersList,
31 (sizeof(HandlersList) / sizeof(HandlersList[0])),
32 PrintUsage);
33 }