LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

fputs

fputs

int fputs (const char lineBuffer[], FILE *stream);

Purpose

Writes a string to the specified output stream. A terminating ASCII NUL byte is not written.

Parameters

Input
Name Type Description
lineBuffer const char [] Contains a pointer to the string that is written to the specified output stream. A terminating ASCII NUL byte is not written to the stream.
stream FILE * Contains a pointer to the output stream to which the specified string is written.

Return Value

Name Type Description
status int Contains the resulting status of the function. On success, fputs returns 0. If a write error occurs, fputs returns EOF and sets errno to a nonzero value.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Examples

Refer to the following examples that use the fputs function:

  • dotnet\GenericList\genericlist.cws

    Open example
  • dotnet\Timer\timer.cws

    Open example
Was this information helpful?