1SC_LIST_FILES(3) OpenSC API reference SC_LIST_FILES(3)
2
3
4
6 sc_list_files - List files
7
9 #include <opensc.h>
10
11 int sc_list_files(struct sc_card *card, unsigned char *buf, size_t buflen);
12
13
14
16 This function lists all files in the currently selected DF, and stores
17 the file IDs as big-endian 16-bit words in buffer, which is buflen
18 bytes long. If the supplied buffer is too small to hold all file IDs,
19 the listing is silently truncated.
20
22 Returns the number of bytes stored in buffer, or a negative value in
23 case of error.
24
25
26
27opensc 05/04/2007 SC_LIST_FILES(3)