Module mylib

A sample C extension.

Demonstrates using ldoc’s C/C++ support. Can either use /// or /** / etc.

Functions

createtable (narr, nrec) Create a table with given array and hash slots.
solve (a, b, c) Solve a quadratic equation.


Functions

createtable (narr, nrec)
Create a table with given array and hash slots.

Parameters:

  • narr initial array slots, default 0
  • nrec initial hash slots, default 0
solve (a, b, c)
Solve a quadratic equation.

Parameters:

  • a num coefficient of x^2
  • b num coefficient of x
  • c num constant

Returns:

  1. num first root
  2. num second root
generated by LDoc 1.5.0 Last updated 2023-05-07 19:27:27