moncmdl 151 src/monitor.c MONCMDLINE *moncmdl = NULL; moncmdl 162 src/monitor.c moncmdl = malloc_chk(sizeof(MONCMDLINE), "moncmdl"); moncmdl 165 src/monitor.c moncmdl->cmd = strndup_chk(p, i, "moncmdl->cmd"); moncmdl 173 src/monitor.c moncmdl->args = monargstok(p); moncmdl 175 src/monitor.c moncmdl->args = malloc_chk(sizeof(MONARGS), "moncmdl.args"); moncmdl 176 src/monitor.c moncmdl->args->argc = 0; moncmdl 179 src/monitor.c return moncmdl; moncmdl 357 src/monitor.c void free_moncmdline(MONCMDLINE *moncmdl) moncmdl 360 src/monitor.c assert(moncmdl != NULL); moncmdl 361 src/monitor.c if(moncmdl->args != NULL) { moncmdl 362 src/monitor.c for(i = 0; i < moncmdl->args->argc; i++) { moncmdl 363 src/monitor.c FREE(moncmdl->args->argv[i]); moncmdl 365 src/monitor.c FREE(moncmdl->args); moncmdl 367 src/monitor.c if(moncmdl->cmd != NULL) { moncmdl 368 src/monitor.c FREE(moncmdl->cmd); moncmdl 370 src/monitor.c if(moncmdl != NULL) { moncmdl 371 src/monitor.c FREE(moncmdl); moncmdl 392 src/monitor.c MONCMDLINE *moncmdl = NULL; moncmdl 404 src/monitor.c if((moncmdl = monlinetok(buf)) != NULL) { moncmdl 405 src/monitor.c cmdtype = monitorcmd(moncmdl->cmd, moncmdl->args); moncmdl 406 src/monitor.c free_moncmdline(moncmdl);