MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
mx_std.h
Go to the documentation of this file.
1
6#ifndef _MX_STD_H__
7#define _MX_STD_H__
8
9#include <stdint.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
19void set_program_args(int argc, const char **argv);
20
22int argc(void);
23
28const char *argv(int idx);
29
31void free_program_args(void);
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif
void free_program_args(void)
Free the stored command-line argument memory.
Definition std.c:23
void set_program_args(int argc, const char **argv)
Store command-line arguments for later access via argc()/argv().
Definition std.c:35
int argc(void)
Return the number of stored command-line arguments.
Definition std.c:72
const char * argv(int idx)
Return the command-line argument at the given index.
Definition std.c:76