sc_list_files(3)

sc_list_files3

List files

Usage

#include <opensc.h>
int sc_list_files(struct sc_card *card, unsigned char *buf, size_t buflen);

Overview

This function lists all files in the currently selected DF, and stores the file IDs as big-endian 16-bit words in buffer, which is buflen bytes long. If the supplied buffer is too small to hold all file IDs, the listing is silently truncated.

Return value

Returns the number of bytes stored in buffer, or a negative value in case of error.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 3 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0

From libopensc2-dev 0.11.13-1.1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.