<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>moncmdl</title> <meta name='robots' content='noindex,nofollow' /> <meta name='generator' content='GLOBAL-6.6.5' /> <meta http-equiv='Content-Style-Type' content='text/css' /> <link rel='stylesheet' type='text/css' href='../style.css' /> </head> <body> <pre> <span class='curline'><a href='../S/2804.html#L151'>moncmdl</a> 151 src/monitor.c MONCMDLINE *moncmdl = NULL;</span> <span class='curline'><a href='../S/2804.html#L162'>moncmdl</a> 162 src/monitor.c moncmdl = malloc_chk(sizeof(MONCMDLINE), "moncmdl");</span> <span class='curline'><a href='../S/2804.html#L165'>moncmdl</a> 165 src/monitor.c moncmdl->cmd = strndup_chk(p, i, "moncmdl->cmd");</span> <span class='curline'><a href='../S/2804.html#L173'>moncmdl</a> 173 src/monitor.c moncmdl->args = monargstok(p);</span> <span class='curline'><a href='../S/2804.html#L175'>moncmdl</a> 175 src/monitor.c moncmdl->args = malloc_chk(sizeof(MONARGS), "moncmdl.args");</span> <span class='curline'><a href='../S/2804.html#L176'>moncmdl</a> 176 src/monitor.c moncmdl->args->argc = 0;</span> <span class='curline'><a href='../S/2804.html#L179'>moncmdl</a> 179 src/monitor.c return moncmdl;</span> <span class='curline'><a href='../S/2804.html#L357'>moncmdl</a> 357 src/monitor.c void free_moncmdline(MONCMDLINE *moncmdl)</span> <span class='curline'><a href='../S/2804.html#L360'>moncmdl</a> 360 src/monitor.c assert(moncmdl != NULL);</span> <span class='curline'><a href='../S/2804.html#L361'>moncmdl</a> 361 src/monitor.c if(moncmdl->args != NULL) {</span> <span class='curline'><a href='../S/2804.html#L362'>moncmdl</a> 362 src/monitor.c for(i = 0; i < moncmdl->args->argc; i++) {</span> <span class='curline'><a href='../S/2804.html#L363'>moncmdl</a> 363 src/monitor.c FREE(moncmdl->args->argv[i]);</span> <span class='curline'><a href='../S/2804.html#L365'>moncmdl</a> 365 src/monitor.c FREE(moncmdl->args);</span> <span class='curline'><a href='../S/2804.html#L367'>moncmdl</a> 367 src/monitor.c if(moncmdl->cmd != NULL) {</span> <span class='curline'><a href='../S/2804.html#L368'>moncmdl</a> 368 src/monitor.c FREE(moncmdl->cmd);</span> <span class='curline'><a href='../S/2804.html#L370'>moncmdl</a> 370 src/monitor.c if(moncmdl != NULL) {</span> <span class='curline'><a href='../S/2804.html#L371'>moncmdl</a> 371 src/monitor.c FREE(moncmdl);</span> <span class='curline'><a href='../S/2804.html#L392'>moncmdl</a> 392 src/monitor.c MONCMDLINE *moncmdl = NULL;</span> <span class='curline'><a href='../S/2804.html#L404'>moncmdl</a> 404 src/monitor.c if((moncmdl = monlinetok(buf)) != NULL) {</span> <span class='curline'><a href='../S/2804.html#L405'>moncmdl</a> 405 src/monitor.c cmdtype = monitorcmd(moncmdl->cmd, moncmdl->args);</span> <span class='curline'><a href='../S/2804.html#L406'>moncmdl</a> 406 src/monitor.c free_moncmdline(moncmdl);</span> </pre> </body> </html>