3
.\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
5
.\" Manual: OpenSC API reference
8
.TH "SC_PUT_DATA" "3" "09/10/2007" "opensc" "OpenSC API reference"
9
.\" disable hyphenation
11
.\" disable justification (adjust text to left margin only)
14
sc_put_data \- Store a primitive data object on a card
23
int sc_put_data(sc_card_t *card, unsigned int tag,
24
const unsigned char *buf, size_t len);
31
This function is used to store a primitive data object on
32
\fIcard\fR. It corresponds to the PUT DATA command in the ISO 7816 standard. The data to be sent to the card is stored in
39
parameter specifies the object to be stored. Refer to the standard for the correct values to use.
42
Returns 0 if successful, or a negative value in case of error.