1
.\" Title: sc_read_binary
3
.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
5
.\" Manual: OpenSC API reference
8
.TH "SC_READ_BINARY" "3" "02/26/2009" "opensc" "OpenSC API reference"
9
.\" disable hyphenation
11
.\" disable justification (adjust text to left margin only)
14
sc_read_binary \- Read a file
23
int sc_read_binary(struct sc_card *card, unsigned int offset,
24
unsigned char *buf, size_t count,
32
This function reads from a transparent elementary file (EF) on
33
\fIcard\fR\&. It corresponds to the ISO 7816 READ BINARY function\&. Call
35
first to select the file to read from\&.
37
The data read from the file is stored in
44
argument specifies the file offset in bytes\&. The
46
argument is currently not used, and should be set to 0\&.
49
If successful, the number of bytes read is returned\&. Otherwise, a negative value is returned\&.