websWrite GoAhead WebServer API GoAhead EMF

Synopsis

Write formatted data to the user's browser

Prototype

#include "webs.h"

int websWrite(webs_t wp, char_t *fmt, ...);

Parameters

wp Web server connection handle
fmt Output format string
... Variable arguments to supply data for the format string

Description

The websWrite procedure is the primary routine to write formatted data back to the user's browser. It can be used within both ASP procedures and Form procedures. It uses a printf style format string with a variable number of arguments. Data will be immediately flushed to the user's browser.

Return Value

The number of bytes actually written.

Example

websWrite(wp, "Name %s, Address %s", name, address);

See Also

Active Server Pages, Forms, websDone, websFooter, websHeader