 |
bladox.com Turbo SIM Toolkit Adapter Forums
|
View previous topic :: View next topic |
Author |
Message |
asciz Guest
|
Posted: Wed Mar 22, 2006 4:32 pm Post subject: select() question |
|
|
Hi, a couple questions about the select() function:
- Should the parameter path_len be number of files in the path or number of bytes in the array containing the path?
- Does the return value (u16) contain SW1 and SW2?
- Where does the SIM response end up?
- Should I call select(0,0) even if my select call fails if e.g. the file does not exist?
While I'm at it, is there a function for reading records from a file? No probs if not, will then use sim() but thought maybe it had been added.
Appologies if I'm asking stuff that's in the documentation, but I couldn't find it.
Many thanks |
|
Back to top |
|
 |
pz Guest
|
Posted: Thu Mar 23, 2006 5:42 pm Post subject: Re: select() question |
|
|
asciz wrote: | Hi, a couple questions about the select() function:
- Should the parameter path_len be number of files in the path or number of bytes in the array containing the path?
|
Number of files, i.e. bytes/2.
Quote: |
- Does the return value (u16) contain SW1 and SW2?
|
Yes.
Quote: |
- Where does the SIM response end up?
|
Do you mean of sim() call? In the buffer - last arg.
Quote: |
- Should I call select(0,0) even if my select call fails if e.g. the file does not exist?
|
Yes, this is necessary. It's somewhere in 11.11 or so.
Quote: |
While I'm at it, is there a function for reading records from a file? No probs if not, will then use sim() but thought maybe it had been added.
|
No, you have to use sim(). In fact such call would be just renamed sim() without first arg.
Quote: |
Appologies if I'm asking stuff that's in the documentation, but I couldn't find it.
Many thanks |
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|