<b>put_string()</b>




Document: The safe-c User Guide

next get_string()
up Functions
gif Functions

put_string()

put_string() accepts exactly one argument which must be of string_type. This may be either a string constant or a string variable. If it is a variable, its value will not be changed by put_string().

put_string() outputs the given string on the standard output stream, or stdout for short. By default, stdout simply corresponds to the MS-DOS window in which the program is being executed. However, when the program is being started, stdout can be redirected into a file on disk. Suppose the executable program is called foo.exe; then the following way of executing the program under DOS would result in stdout being redirected to a file called output.txt (any previous contents of this file being overwritten):

    D:\SOFTENG1>foo >output.txt

put_string does not produce any return value.




Document: The safe-c User Guide

next get_string()
up Functions
gif Functions



McMullin@eeng.dcu.ie
Fri Jan 12 12:30:02 GMT 1996