Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
establish.c File Reference

Implements the OP_PCSC_ESTABLISH opcode (conditional build). More...

Go to the source code of this file.

Functions

case make_int (0))

Variables

case OP_PCSC_ESTABLISH
 break

Detailed Description

Implements the OP_PCSC_ESTABLISH opcode (conditional build).

Creates a new PC/SC context using SCardEstablishContext(SCARD_SCOPE_SYSTEM) and registers it in the internal PCSC context registry when FUN_WITH_PCSC is enabled. Returns the allocated context id on success, or 0 on failure. When PCSC support is disabled at build time, this opcode returns 0.

Definition in file establish.c.

Function Documentation

◆ make_int()

case make_int(0)

Variable Documentation

◆ break

break

Definition at line 49 of file establish.c.

◆ OP_PCSC_ESTABLISH

case OP_PCSC_ESTABLISH

OP_PCSC_ESTABLISH: () -> int

  • Returns: context id (>0) on success; 0 on error or when disabled.

Definition at line 27 of file establish.c.