mirror of
https://github.com/samsonjs/lake.git
synced 2026-03-25 08:55:49 +00:00
26 lines
No EOL
504 B
C
26 lines
No EOL
504 B
C
/**
|
|
* string.h
|
|
* Lake Scheme
|
|
*
|
|
* Copyright 2011 Sami Samhuri
|
|
* MIT License
|
|
*
|
|
*/
|
|
|
|
#ifndef _LAKE_STRING_H
|
|
#define _LAKE_STRING_H 1
|
|
|
|
#include "lake.h"
|
|
|
|
LakeStr *str_make(void);
|
|
void str_free(LakeStr *str);
|
|
LakeStr *str_copy(LakeStr *str);
|
|
LakeStr *str_from_c(char *s);
|
|
char *str_val(LakeStr *str);
|
|
LakeInt *str_len(LakeStr *str);
|
|
NILP str_set(LakeStr *str, char *s);
|
|
LakeInt *str_cmp(LakeStr *a, LakeStr *b);
|
|
LakeSym *str_eq(LakeStr *a, LakeStr *b);
|
|
LakeStr *str_to_str(LakeStr *str);
|
|
|
|
#endif |