📄 sc_read_record.3
字号:
.TH sc_read_record 3 "April 2003" "OpenSC Programmer's Manual.SH NAMEsc_read_record, sc_write_record, sc_update_record \- read and write files on a smart card.SH SYNOPSIS.nf.B #include <opensc.h>.sp.BI "int sc_read_record(sc_card_t *" card ",.BI " unsigned int " rec_nr ",.BI " unsigned char *" buffer ",.BI " size_t " count ",.BI " unsigned long " flags ");.BI "int sc_write_record(sc_card_t *" card ",.BI " unsigned int " rec_nr ",.BI " const unsigned char *" buffer ",.BI " size_t " count ",.BI " unsigned long " flags ");.BI "int sc_update_record(sc_card_t *" card ",.BI " unsigned int " rec_nr ",.BI " const unsigned char *" buffer ",.BI " size_t " count ",.BI " unsigned long " flags ");.BI "int sc_append_record(sc_card_t *" card ",.BI " const unsigned char *" buffer ",.BI " size_t " count ",.BI " unsigned long " flags ");.fi.SH DESCRIPTIONThis functions read and write record-structured elementary files(EFs) on a smart card. The correspond to the ISO 7816 functions READRECORD, WRITE RECORD, APPEND RECORD and UPDATE RECORD, respectively.(The difference between write and update is that the former means writingto an uninitialized file, while the latter is intended to update a recordpreviously written to - some card have different access conditions forthese operations)..PPThe \fIrec_nr\fP argument specifies the number of the record to bewritten to, starting at 0..PPThe \fIflags\fP argument is currently not used, and should be setto 0..SH RETURN VALUEIf an error occurred, a negative error code is returned, as describedin \fbsc_error\fP(3). Otherwise, the function will return thenumber of bytes read or written..SH SEE ALSO.BR sc_file (3),.BR sc_path (3),.BR sc_establish_context (3),.BR sc_select_file (3),.BR sc_read_binary (3),.BR sc_delete_file (3),.BR sc_create_file (3),.BR sc_file_free (3)..SH AUTHORThis manual page was written by Olaf Kirch <okir@suse.de>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -