摘要:
最近写的程序要用到base64_encode,网上一搜“C语言 base64”出来一堆代码,但是我向来是不惮以最坏的恶意来推测这些代码的。于是看了一下PHP源码,base64_encode函数定义在ext\standard\base64.c文件中。我把它改写了一下,需要注意内存是动态分配的,使用完之后记得free掉,否则会造成内存泄露。unsigned char *base64_encode(const unsigned char *str){ static const char base64_table[] = { 'A', 'B', 'C', 阅读全文
摘要:
21000 The App Store could not read the JSON object you provided.21002 The data in the receipt-data property was malformed.21003 The receipt could not be authenticated.21004 The shared secret you provided does not match the shared secret on file for your account.21005 The receipt server is not curren 阅读全文