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

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

Go to the source code of this file.

Functions

 free_value (vh)
 push_value (vm, make_int(0))

Variables

case OP_PCSC_DISCONNECT
 break

Detailed Description

Implements the OP_PCSC_DISCONNECT opcode (conditional build).

Disconnects a previously connected smart-card handle and frees the corresponding registry slot. When PCSC support is disabled at build time, this opcode returns 0 after consuming its argument.

Definition in file disconnect.c.

Function Documentation

◆ free_value()

free_value(vh)

◆ push_value()

push_value(vm,
make_int(0) )

Variable Documentation

◆ break

break

Definition at line 48 of file disconnect.c.

◆ OP_PCSC_DISCONNECT

case OP_PCSC_DISCONNECT

OP_PCSC_DISCONNECT: (handle_id:int) -> int

  • Pops: handle_id.
  • Pushes: 1 on success; 0 on error (invalid id/not found) or when disabled.
  • Notes: Uses SCardDisconnect(..., SCARD_LEAVE_CARD).

Definition at line 28 of file disconnect.c.