Keil Logo

SYS_TMPNAM (0x0D)

11.25 SYS_TMPNAM (0x0D)

Returns a temporary name for a file identified by a system file identifier.

Entry

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.

Return

On exit, R0 contains:
  • 0 if the call is successful
  • –1 if an error occurs.
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.

Note

The returned string must be null-terminated.
Non-ConfidentialPDF file icon PDF versionARM DUI0375H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.