basic.%fputs

C Function/BASIC Program, Releases: AP/Unix

Writes a string on a stream.

Syntax

variable=%fputs( string, (char*)stream)

Description

writes the string designated by 'string' on the named output stream.

EOF (-1) is returned in case of an error.

Example

equ NL to char(10)
n=%fputs('Input file name':NL,(char*)stream)

See Also

Command Name Type Description
basic.cfunc Definition can be called from a Pick/BASIC program or subroutine in AP/DOS and AP/Unix implementations using a syntax similar to that of normal C.
basic.cfunction Definition Declare a list of C functions.
basic.%fgetc C Function Gets a character from a stream.
basic.%fputc C Function Puts a character on a stream.
basic.%popen C Function Creates pipe between calling process and command.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.