MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
cstring.c File Reference

String module C implementation — string manipulation, comparison, and formatting. More...

#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for cstring.c:

Go to the source code of this file.

Functions

int64_t strfind (const char *src, const char *search, long n)
int64_t substr (char *dest, int64_t size, const char *src, int64_t pos, int64_t len)
int64_t strat (const char *src, int64_t pos)
int64_t pos (const char *substr, const char *s)
char * copy (const char *s, int64_t index, int64_t count)
char * insert (const char *source, const char *dest, int64_t index)
char * delete_str (const char *s, int64_t index, int64_t count)
char * inttostr (int64_t value)
int64_t strtoint (const char *s)

Detailed Description

String module C implementation — string manipulation, comparison, and formatting.

Author
Jared Bruni

Definition in file cstring.c.

Function Documentation

◆ copy()

char * copy ( const char * s,
int64_t index,
int64_t count )

Definition at line 60 of file cstring.c.

◆ delete_str()

char * delete_str ( const char * s,
int64_t index,
int64_t count )

Definition at line 106 of file cstring.c.

◆ insert()

char * insert ( const char * source,
const char * dest,
int64_t index )

Definition at line 83 of file cstring.c.

◆ inttostr()

char * inttostr ( int64_t value)

Definition at line 136 of file cstring.c.

◆ pos()

◆ strat()

int64_t strat ( const char * src,
int64_t pos )

Definition at line 41 of file cstring.c.

References pos().

◆ strfind()

int64_t strfind ( const char * src,
const char * search,
long n )

Definition at line 12 of file cstring.c.

◆ strtoint()

int64_t strtoint ( const char * s)

Definition at line 144 of file cstring.c.

◆ substr()

int64_t substr ( char * dest,
int64_t size,
const char * src,
int64_t pos,
int64_t len )

Definition at line 25 of file cstring.c.

References pos().

Referenced by pos().