ARM VERSION 1.2 Datasheet Page 174

  • Download
  • Add to my manuals
  • Print
  • Page
    / 276
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 173
The C and C++ Libraries
4-84 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
4.10.11 _sys_tmpnam()
This function converts the file number
fileno
for a temporary file to a unique filename,
for example
tmp0001
.
Syntax
void _sys_tmpnam(char *name, int fileno, unsigned maxlength)
Implementation
The function must be defined if
tmpnam()
or
tmpfile()
isused.
Returns
Returns the filename in
name
.
4.10.12 _sys_command_string()
This function retrieves the command line used to invoke the current application from
the environment that called the application.
Syntax
char *_sys_command_string(char *cmd, int len)
where:
cmd
Is a pointer to a buffer that can be used to storethe command line. It is not
required that the command line is stored in
cmd
.
len
Is the length of the buffer.
Implementation
This function is called by the library startup code to set up
argv
and
argc
to pass to
main()
.
Returns
The function must return either:
A pointer to the command line, if successful. This can be either a pointer to the
cmd
buffer if it is used, or a pointer to wherever else the command line is stored.
NULL
, if not successful.
Page view 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 275 276

Comments to this Manuals

No comments