12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

eturn. The function works with both number and string values.getval(prompt, val) — As above, but prompts the user with the string prompt . Thestring is printed followed by the current value of val in parenthesis, a questionmark and a space. For example,17.FOURC> DATAFILE = getval("Data file", DATAFILE)Data file (pt100.133)? 18.FOURC>Text Outputprint a [, b ... ] — Prints the string value of each argument, adding a spacebetween each string. If the argument is an associative array, each element ofthe array is printed in a list, as in:18.FOURC> print mAmA["0"] = 2mA["1"] = 0mA["2"] = 1mA["3"] = 319.FOURC>If the argument is a data array, the contents of the array are printed in a compressedformat, as in:19.FOURC> array data[64][64]; data[0] = 1; data[1] = 220.FOURC> print data{{1 }, {2 }, {0 } }21.FOURC>eprint a [, b ... ] — As above, except that if an error-log file is open, the generatedstring will also be written to that file prefixed by the #E characters.printf(format [, a ... ]) — Does formatted printing on the turned-on outputdevices. format contains the format <strong>spec</strong>ifications for any following arguments.See the description of printf() in any C-language manual. Returnstrue.eprintf(format [, a ... ]) — As above, except that if an error-log file is open, thegenerated string will also be written to that file prefixed by the #E characters.fprintf(file_name, format [, a ... ]) — Does formatted printing on file_name .All other devices (except log files) are turned off while the string is printed.The <strong>spec</strong>ified file is opened, if necessary, and remains open until closed withthe close() function.86 REFERENCE MANUAL INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!