manpagez: man pages & more
info flex
Home | html | info | man

File: flex.info,  Node: Reentrant,  Next: Lex and Posix,  Prev: Cxx,  Up: Top

19 Reentrant C Scanners
***********************

'flex' has the ability to generate a reentrant C scanner.  This is
accomplished by specifying '%option reentrant' ('-R') The generated
scanner is both portable, and safe to use in one or more separate
threads of control.  The most common use for reentrant scanners is from
within multi-threaded applications.  Any thread may create and execute a
reentrant 'flex' scanner without the need for synchronization with other
threads.

   All scanners generated by back ends other than the default C/C++ back
end are reentrant.

* Menu:

* Reentrant Uses::
* Reentrant Overview::
* Reentrant Example::
* Reentrant Detail::
* Reentrant Functions::

© manpagez.com 2000-2026
Individual documents may contain additional copyright information.