Simple JSON  0.1
A free simple json library for C
simple_json_error.c
Go to the documentation of this file.
1 #include "simple_json_error.h"
2 #include "simple_json_string.h"
3 
4 static SJString error = {0};
5 
6 char *sj_get_error()
7 {
8  return error.text;
9 }
10 
11 void sj_set_error(char *er)
12 {
13  sj_string_set(&error,er);
14 }
15 
16 /*eol@eof*/
void sj_string_set(SJString *string, char *s)
set the value of string to s
char * sj_get_error()
get the last reported error for simple json
void sj_set_error(char *er)
used internally to se the error message
a basic structure that keeps track of a string and its length Automatically grows to accomodate longe...