Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
IO.c File Reference
#include "IO.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
Include dependency graph for IO.c:

Go to the source code of this file.

Functions

static char ** parse_argv (const char *cmd, int *argc)
static void free_argv (char **argv)
void asm_print_stdout (const char *s, int64_t len)
 Native print function.
void asm_print_stderr (const char *s, int64_t len)
 Native print error function.
int64_t asm_system (const char *cmd)
 CRT system call.
char * asm_system_out (const char *cmd)
 CRT system call, get out.
char * asm_system_err (const char *cmd)
 CRT system call, get err.

Function Documentation

◆ asm_print_stderr()

void asm_print_stderr ( const char * s,
int64_t len )

Native print error function.

Definition at line 91 of file IO.c.

Here is the caller graph for this function:

◆ asm_print_stdout()

void asm_print_stdout ( const char * s,
int64_t len )

Native print function.

Definition at line 86 of file IO.c.

Here is the caller graph for this function:

◆ asm_system()

int64_t asm_system ( const char * cmd)

CRT system call.

Definition at line 96 of file IO.c.

Here is the caller graph for this function:

◆ asm_system_err()

char * asm_system_err ( const char * cmd)

CRT system call, get err.

Definition at line 208 of file IO.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ asm_system_out()

char * asm_system_out ( const char * cmd)

CRT system call, get out.

Definition at line 100 of file IO.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ free_argv()

void free_argv ( char ** argv)
static

Definition at line 80 of file IO.c.

Here is the caller graph for this function:

◆ parse_argv()

char ** parse_argv ( const char * cmd,
int * argc )
static

Definition at line 12 of file IO.c.

Here is the caller graph for this function: