next up previous contents index
Next: Reading arguments Up: Adding new internal functions Previous: Adding new internal functions   Contents   Index

Interface

Every internal function has the same interface:

A simple example:

tree_cell*

my_test_function(lex_ctxt* lexic)

{

  fprintf(stderr, "My test function was called\n");

  /* let's look at the context */

  dump_ctxt(lexic);

  /* And return nothing (in NASL) */

  return FAKE_CELL;

}



Michel Arboi 2005-04-29