Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 946 Bytes

UNGETC.2.adoc

File metadata and controls

46 lines (35 loc) · 946 Bytes

UNGETC(2) Manual Page

NAME

UNGETC - return a character to the top of the stream

SYNOPSIS

Input
  • AC - byte to put back to stream

  • XR - stream number

Call

jsr UNGETC

Output
  • C=0

    • AC - byte put to stream

  • C=1

    • AC - error code

Note
XR and YR are not modified (except STDIO streams return true stream number)

DESCRIPTION

Gives byte from stream back. parameter: stream number in x, data byte in a, returns error code in a

RETURN CODES

Error return codes are given when at return, C=1.

E_NOSTR

no valid stream number

E_NUL

no reader in stream

E_SFULL

stream is already full

SEE ALSO

AUTHOR

Written by André Fachat.

REPORTING BUGS