Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ForwardScanTextBuffer(3)

BackwardScanTextBuffer(3W)  —  MISC REFERENCE MANUAL PAGES

Text Buffer Utilities

NAME

 BackwardScanTextBuffer

SYNOPSIS

#include <textbuff.h>
  ...
extern ScanResult BackwardScanTextBuffer(text, exp, location)
TextBuffer ∗ text;
char ∗ exp;
TextLocation ∗ location;

DESCRIPTION

The BackwardScanTextBuffer function is used to scan, towards the beginning of the buffer, for a given expression in the TextBuffer starting at location.  A ScanResult is returned which indicates

  SCAN_NOTFOUND  The scan wrapped without finding a match.
  SCAN_WRAPPED   A match was found at a location after the start location.
  SCAN_FOUND     A match was found at a location before the start location.
  SCAN_INVALID   Either the location or the expression was invalid.

SEE ALSO

ForwardScanTextBuffer(3)

Sun Release 4.1  —  Last change:   —  Last change:

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026