home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff281.lzh
/
FarPrint
/
FarFunctions
< prev
next >
Wrap
Text File
|
1989-11-20
|
2KB
|
94 lines
1
NAME
SendText - Send a text to FarPrint main process
SYNOPSIS
Success = SendText(Formatstring,arg1, arg2 , ..., argn);
FUNCTION
SendText transmits a text to the FarPrint main process
to be recorded and displayed. SendText is called like
the standard printf() 'C' function with all its
limitations and advantages. Since the exec function
RawDoFmt() is employed, all %d and %x symbols have
to be prefixed %ld and %lx. See the description of
RawDoFmt() for a more thorougly description.
INPUTS
Formatstring = Pointer to a string
arg1 - argn = The values to be printed
RESULT
Success = FarPrint port was found and message
successfully transmitted.
BUGS
None known.
SEE ALSO
printf(), RawDoFmt()
2
NAME
RequestNumber - Get a number from FarPrint main process
SYNOPSIS
Number = RequestNumber(Identifier);
FUNCTION
RequestNumber() tries to obtain a numeric value from the
FarPrint main process. This may take some time since
FarPrint may be busy processing other inputs. If the
FarPrint communication port cannot be found this function
returns immediately with a return value of 0.
INPUTS
Identifier = Pointer to null terminated string containing
Name of the caller so user knows who it is
who wants a number.
RESULT
Number = The numeric value entered by the user.
BUGS
None known.
SEE ALSO
3
NAME
RequestString - Get a string from FarPrint main process
SYNOPSIS
String = RequestString(Identifier);
FUNCTION
RequestNumber() tries to obtain an 80 character string
from the FarPrint main process. This may take some time since
FarPrint may be busy processing other inputs. If the
FarPrint communication port cannot be found this function
returns immediately with a return value of NULL.
INPUTS
Identifier = Pointer to null terminated string containing
Name of the caller so user knows who it is
who wants a string.
RESULT
String = The string value entered by the user, or NULL
if FarPrint port was not to be located.
BUGS
Not reentrant, uses its own static character buffer.
SEE ALSO