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:
- num first root
- num second root