 RealView Compiler User's Guide |
|
| SYS_TMPNAM (0x0D)A.3.21. SYS_TMPNAM (0x0D)Returns a temporary name for a file identified by a system file identifier. On entry, r1 contains a pointer to a three‑word argument block: - word 1
A pointer to a buffer. - word 2
A target identifier for this filename. Its value must be an integer in the range 0 to 255. - word 3
Contains the length of the buffer. The length must be at least the value of L_tmpnam on the host system.
On exit, r0 contains: The buffer pointed to by r1 contains the filename, prefixed with a suitable directory name. If you use the same target identifier again, the same filename is returned. NoteThe returned string must be null‑terminated. |
|