From 7213af916cbb0087a6b85c800311c3f6a60c13b3 Mon Sep 17 00:00:00 2001 From: ZoRo Date: Sat, 4 Aug 2018 09:36:29 +0100 Subject: Added dynamic array --- notifylist.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'notifylist.c') diff --git a/notifylist.c b/notifylist.c index d19355b..e2df6e8 100644 --- a/notifylist.c +++ b/notifylist.c @@ -7,6 +7,8 @@ #include +#include "darray.h" + class INotify { private: public: @@ -49,7 +51,57 @@ int main(int argc, char **argv) if (helpArg->isUsed()) { printf("Help\n"); + return 0; + } + + if (versionArg->isUsed()) + { + printf("Version\n"); + return 0; + } + + if (pathArg->isUsed() and eventArg->isUsed()) + { + + } + + #define N 10 + DArray a = DArray(0,N); + int i; + //init + for (i=0;i