mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
30 lines
468 B
Plaintext
30 lines
468 B
Plaintext
NAME
|
|
cmdbuf - print the command buffer
|
|
|
|
SYNOPSIS
|
|
cmdbuf()
|
|
|
|
TYPES
|
|
return str
|
|
|
|
DESCRIPTION
|
|
This function returns the command string that was formed by calc based
|
|
on its command line arguments. If calc was invoked without arguments,
|
|
this function will return an empty string.
|
|
|
|
EXAMPLE
|
|
% calc "print cmdbuf(); a = 3; print a^2;"
|
|
print cmdbuf(); a = 3; print a^2;
|
|
|
|
9
|
|
%
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
XXX - fill in
|