1SC_APPEND_RECORD(3) OpenSC API reference SC_APPEND_RECORD(3)
2
3
4
6 sc_append_record - Append a record to a file
7
9 #include <opensc.h>
10
11 int sc_append_record(struct sc_card *card,
12 const unsigned char *buf, size_t buflen,
13 unsigned long flags);
14
15
16
18 This function appends a record that is buflen bytes long from the
19 buffer pointed to by buf to a record-structured elementary file (EF) on
20 card. The function corresponds to the ISO 7816 APPEND RECORD function.
21 Call sc_select_file() first to select the file to write to.
22
24 Returns the number of bytes written if successful, or a negative value
25 in case of error.
26
27
28
29opensc 05/04/2007 SC_APPEND_RECORD(3)