[ create a new paste ] login | about

shuax

Name: shuax
Email:
Site/Blog: http://www.shuax.com
Location: china
Default language: C
Favorite languages: C,C++,lua
About:

Saved pastes by shuax:

Lua, pasted on Jan 7:
1
2
3
4
--根据首字节获取UTF8需要的字节数
local function GetUTF8CharLength(ch)
	local utf8_look_for_table = {
		1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
...
view (81 lines, 6 lines of output)
C, pasted on Mar 29:
1
2
3
4
5
/*
单文件zlib解压,调用接口:
unsigned char *stbi_zlib_decode_malloc(const unsigned char *buffer, unsigned int *len, unsigned int *outlen)

失败返回0
...
view (463 lines)
C, pasted on Feb 1:
1
2
3
4
5
#include <stdio.h>

int show(int *a, int n)
{
	n--;
...
view (50 lines, 3 lines of output)