libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Functions
io.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include "io.h"

Go to the source code of this file.

Functions

void ps_file_ctx_init (struct ps_file_ctx *file_ctx, STR filename, char *buffer, usize length)
 Initializes file_ctx to describe the given file (filename, buffer, length).
 
char * ps_read_file_safe (const char *filename, isize *length_ext)
 

Function Documentation

◆ ps_file_ctx_init()

void ps_file_ctx_init ( struct ps_file_ctx file_ctx,
STR  filename,
char *  buffer,
usize  length 
)

Initializes file_ctx to describe the given file (filename, buffer, length).

Definition at line 7 of file io.c.

◆ ps_read_file_safe()

char * ps_read_file_safe ( const char *  filename,
isize length_ext 
)

Definition at line 14 of file io.c.