Commit 750de514 authored by Eric Coissac's avatar Eric Coissac

--no commit message

--no commit message
parent c3045db1
......@@ -333,6 +333,20 @@ int32_t nextForward(buffer_t *buffer, int32_t current, size_t length, int32_t* e
return 0;
}
static char* itoa(int val, int base){
static char buf[32] = {0};
int i = 30;
for(; val && i ; --i, val /= base)
buf[i] = "0123456789abcdef"[val % base];
return &buf[i+1];
}
/**
*
* buffer : a pointer to a read index structure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment