cfunc.rewind

C Function/C Functions, Releases: AP 6.1

Pick/BASIC 'rewind' functionality from C.

Syntax

int _CP_rewind(int type)

Description

equivalent to the Pick/BASIC statement: rewind

type Pick/BASIC statement

_CP_REWIND_ELSE rewind else * return -1
_CP_REWIND_ONERR rewind else * return -1

This function returns -1 if an error occurs. The error code is contained in _CP_errno. PE_TAPE indicates a tape error.

Example

/* The following example rewinds the tape. */

_CP_rewind(_CP_REWIND_ELSE);

See Also

Command Name Type Description
cfunc.introduction Introductory Overview
cfunc.weof C Function Pick/BASIC 'weof' functionality from C.

User Comments

What do you think?

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

Login to leave your comments.