1NAME 2 cmdbuf - print the command buffer 3 4SYNOPSIS 5 cmdbuf() 6 7TYPES 8 return str 9 10DESCRIPTION 11 This function returns the command string that was formed by calc based 12 on its command line arguments. If calc was invoked without arguments, 13 this function will return an empty string. 14 15EXAMPLE 16 # NOTE: The following is intended to a shell command line: 17 18 $ calc "print cmdbuf(); a = 3; print a^2;" 19 print cmdbuf(); a = 3; print a^2; 20 21 9 22 23LIMITS 24 none 25 26LINK LIBRARY 27 none 28 29SEE ALSO 30 argv, system 31 32## Copyright (C) 1999-2006,2021 Landon Curt Noll 33## 34## Calc is open software; you can redistribute it and/or modify it under 35## the terms of the version 2.1 of the GNU Lesser General Public License 36## as published by the Free Software Foundation. 37## 38## Calc is distributed in the hope that it will be useful, but WITHOUT 39## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 40## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General 41## Public License for more details. 42## 43## A copy of version 2.1 of the GNU Lesser General Public License is 44## distributed with calc under the filename COPYING-LGPL. You should have 45## received a copy with calc; if not, write to Free Software Foundation, Inc. 46## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 47## 48## Under source code control: 1995/07/09 04:05:58 49## File existed as early as: 1995 50## 51## chongo <was here> /\oo/\ http://www.isthe.com/chongo/ 52## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/ 53